(self)
return nodes
Returns the list of nodes for the underlying 
        set of paths
Returns the list of nodes for the underlying 
        set of paths
Returns the list of nodes for the underlying set of paths
def getNodes(self):
        """
        Returns the list of nodes for the underlying 
        set of paths
        """
        nodes = set()
        for p in self.paths[0]:
            nodes.add(p[0])
        return nodes
def getNodes ( self ) : nodes = set ( ) for p in self . paths [ 0 ] : nodes . add ( p [ 0 ] ) return nodes