diff --git a/lib/graph.py b/lib/graph.py index 3ac4c44..bd713c2 100644 --- a/lib/graph.py +++ b/lib/graph.py @@ -184,7 +184,7 @@ def distance_matrix(self,method='shortest_path',changeInf=True,maxvaluemulti=10, def all_matrix_attr(self,return_invd=False): - d=dict((k, v) for k, v in self.nx_graph.node.items()) + d=dict((k, v) for k, v in self.nx_graph.nodes.items()) x=[] invd={} try :