def bonds_iter(self):
        """Iterate over bonds."""
        for u, v, bond in self.graph.edges.data("bond"):
            yield u, v, bond
def bonds_iter ( self ) : for u , v , bond in self . graph . edges . data ( "bond" ) : yield u , v , bond
Iterate over bonds.