diff --git a/tools/sumolib/net/node.py b/tools/sumolib/net/node.py index 55c3a110f2a9..cce1d7a3aa3d 100644 --- a/tools/sumolib/net/node.py +++ b/tools/sumolib/net/node.py @@ -206,5 +206,11 @@ def getNeighboringNodes(self, outgoingNodes=True, incomingNodes=True): neighboring.append(e.getToNode()) return neighboring + def getMaxTLLinkIndex(self): + idx = [] + for conn in self.getConnections(): + idx.append(conn.getTLLinkIndex()) + return(max(idx)) + def __repr__(self): return '' % self._id