Skip to content

Commit

Permalink
adds a workaround to access nodes with node
Browse files Browse the repository at this point in the history
The current workaround in networkx was removed which enabled access
of nodes with the node attribute. This commit adds the workaround
in uesgraphs.
  • Loading branch information
Sebastian Uerlich committed Oct 23, 2019
1 parent ff390fc commit 8fcf0e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uesgraphs/uesgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def __init__(self):
self.simplification_level = 0
self.pipeIDs = []

@property
def node(self):
return self.nodes

@property
def positions(self):
for node in self.nodes(data=True):
Expand Down

0 comments on commit 8fcf0e9

Please sign in to comment.