[core] graph: use new dependenciesOnly option on graph operations

Input attribute to input attribute connection is not a real dependency between the nodes.
This commit is contained in:
Fabien Castan 2020-12-14 19:02:49 +01:00
parent 98b5039f8a
commit d291fcc39d
4 changed files with 60 additions and 43 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(startNodes=[startNode], reverse=True)[0])]
[self.removeNode(node) for node in reversed(self._graph.dfsOnDiscover(startNodes=[startNode], reverse=True, dependenciesOnly=True)[0])]
@Slot(Attribute, Attribute)
def addEdge(self, src, dst):