Loading autocnet/graph/network.py +4 −1 Original line number Diff line number Diff line Loading @@ -374,12 +374,15 @@ class CandidateGraph(nx.Graph): else: edges_to_iter = self.edges() if not isinstance(func, str): func = func.__name__ for s, d in edges_to_iter: curr_edge = self.get_edge_data(s, d) try: function = getattr(curr_edge, func) except: raise AttributeError('The passed function is not an attribute of Edge') raise AttributeError(func, ' is not an attribute of Edge') else: function(*args, **kwargs) Loading notebooks/Tutorial with Visualization.ipynb +24 −23 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
autocnet/graph/network.py +4 −1 Original line number Diff line number Diff line Loading @@ -374,12 +374,15 @@ class CandidateGraph(nx.Graph): else: edges_to_iter = self.edges() if not isinstance(func, str): func = func.__name__ for s, d in edges_to_iter: curr_edge = self.get_edge_data(s, d) try: function = getattr(curr_edge, func) except: raise AttributeError('The passed function is not an attribute of Edge') raise AttributeError(func, ' is not an attribute of Edge') else: function(*args, **kwargs) Loading
notebooks/Tutorial with Visualization.ipynb +24 −23 File changed.Preview size limit exceeded, changes collapsed. Show changes