Commit 6cf868fc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! no longer store id inside node_container[id].

parent d60e2191
...@@ -55,8 +55,8 @@ def positionGraph(): ...@@ -55,8 +55,8 @@ def positionGraph():
""" """
graph = pydot.Dot() graph = pydot.Dot()
for node in request.json['nodes'].itervalues(): for node_id, node in request.json['nodes'].iteritems():
graph.add_node(pydot.Node(node['id'])) graph.add_node(pydot.Node(node_id))
for edge in request.json['edges'].itervalues(): for edge in request.json['edges'].itervalues():
graph.add_edge(pydot.Edge(edge[0], edge[1])) graph.add_edge(pydot.Edge(edge[0], edge[1]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment