def _get_name(self, graph, group=None):
if group is not None:<EOL><INDENT>graph = graph.get_subgraph(group, normalize=True)<EOL><DEDENT>fingerprint = graph.fingerprint.tobytes()<EOL>name = self.name_cache.get(fingerprint)<EOL>if name is None:<EOL><INDENT>name = "<STR_LIT>" % len(self.name_cache)<EOL>self.name_cache[fingerprint] = name<EOL><DEDENT>return name<EOL>
Convert a molecular graph into a unique name

           This method is not sensitive to the order of the atoms in the graph.