[core] Graph: change signature of dfsOnDiscover()

This commit is contained in:
Julien-Haudegond 2020-09-04 12:22:20 +02:00
parent f8bd40ad38
commit 208749d897
5 changed files with 24 additions and 24 deletions

View file

@ -526,7 +526,7 @@ class UIGraph(QObject):
with self.groupedGraphModification("Remove Nodes from {}".format(startNode.name)):
# Perform nodes removal from leaves to start node so that edges
# can be re-created in correct order on redo.
[self.removeNode(node) for node in reversed(self._graph.dfsOnDiscover(startNode)[0])]
[self.removeNode(node) for node in reversed(self._graph.dfsOnDiscover(startNodes=[startNode])[0])]
@Slot(Attribute, Attribute)
def addEdge(self, src, dst):