Given the structure graph, we then compute the Weisfeiler-Lehman 38 graph hash of the undirected structure graph using networkx, 39 using the atom types as node labels. The structure graph hash (SGH) of two crystal structures should be identical if and only if the bond network of the two structures is identical, allowing us to identify duplicates simply by comparing their SGH.