[core] fix node depth computation

This commit is contained in:
Yann Lanthony 2017-10-16 15:30:13 +02:00
parent 505989cfcc
commit ce6925117a

View file

@ -680,7 +680,7 @@ class Graph(BaseObject):
if not inputEdges:
return 0
inputDepths = [e.src.node.depth for e in inputEdges]
return min(inputDepths) + 1
return max(inputDepths) + 1
def getInputEdges(self, node):
return set([edge for edge in self.edges if edge.dst.node is node])