mirror of
https://github.com/gsi-upm/soil
synced 2025-09-15 04:32:21 +00:00
Updated to match NetworkX's 2.0 API
This commit is contained in:
@@ -183,8 +183,8 @@ class SoilEnvironment(nxsim.NetworkEnvironment):
|
||||
if lastvisible:
|
||||
spells.append((laststep, None))
|
||||
if spells:
|
||||
G.add_node(agent.id, attributes, spells=spells)
|
||||
G.add_node(agent.id, **attributes, spells=spells)
|
||||
else:
|
||||
G.add_node(agent.id, attributes)
|
||||
G.add_node(agent.id, **attributes)
|
||||
|
||||
return G
|
||||
|
Reference in New Issue
Block a user