(self)
return '\n'.join(output)
Representation of the graph
Representation of the graph
Representation of the graph
def __repr__(self):
        """Representation of the graph"""
        output = []
        for dist, adjs in self.adjacency_list.items():
            output.append(self.repr_node(dist))
        return '\n'.join(output)
def __repr__ ( self ) : output = [ ] for dist , adjs in self . adjacency_list . items ( ) : output . append ( self . repr_node ( dist ) ) return '\n' . join ( output )