@cached<EOL><INDENT>def equivalent_vertices(self):<DEDENT>
level1 = {}<EOL>for i, row in enumerate(self.vertex_fingerprints):<EOL><INDENT>key = row.tobytes()<EOL>l = level1.get(key)<EOL>if l is None:<EOL><INDENT>l = set([i])<EOL>level1[key] = l<EOL><DEDENT>else:<EOL><INDENT>l.add(i)<EOL><DEDENT><DEDENT>level2 = {}<EOL>for key, vertices in level1.items():<EOL><INDENT>for vertex in vertices:<EOL><INDENT>level2[vertex] = vertices<EOL><DEDENT><DEDENT>return level2<EOL>
A dictionary with symmetrically equivalent vertices.