[graph] improve Node constructor arguments naming

This commit is contained in:
Yann Lanthony 2018-01-05 19:12:49 +01:00
parent c3eda1e629
commit 614ef3a5d1
2 changed files with 15 additions and 6 deletions

View file

@ -113,7 +113,7 @@ class RemoveNodeCommand(GraphCommand):
def undoImpl(self):
with GraphModification(self.graph):
node = self.graph.addNewNode(nodeDesc=self.nodeDict["nodeType"],
node = self.graph.addNewNode(nodeType=self.nodeDict["nodeType"],
name=self.nodeName, **self.nodeDict["attributes"])
assert (node.getName() == self.nodeName)
# recreate out edges deleted on node removal