Skip to content

Commit

Permalink
Changed G.node to G.nodes. adresses victorlei/smop#165
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Dec 13, 2021
1 parent e4fec7f commit e8c2ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smop/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def resolve(t, symtab=None, fp=None, func_name=None):
G = as_networkx(t)
for n in G.nodes():
print(n.__class__.__name__)
u = G.node[n]["ident"]
u = G.nodes[n]["ident"]
if u.props:
pass
elif G.out_edges(n) and G.in_edges(n):
Expand All @@ -63,7 +63,7 @@ def resolve(t, symtab=None, fp=None, func_name=None):
u.props = "R" # ref
else:
u.props = "F" # ???
G.node[n]["label"] = "%s\\n%s" % (n, u.props)
G.nodes[n]["label"] = "%s\\n%s" % (n, u.props)
return G


Expand Down

0 comments on commit e8c2ba5

Please sign in to comment.