(self, path)
return p1
Maps a path in the higher-order network 
        to a path in the first-order network. As an 
        example, the second-order path ('a-b', 'b-c', 'c-d')
        of length two is mapped to the first-order path ('a','b','c','d')
        of length four. In general, a path of length l in a network of 
        order k is mapped to a path of length l+k-1 in the first-order network. 

        @param path: The higher-order path that shall be mapped to the first-order network
Maps a path in the higher-order network 
        to a path in the first-order network. As an 
        example, the second-order path ('a-b', 'b-c', 'c-d')
        of length two is mapped to the first-order path ('a','b','c','d')
        of length four. In general, a path of length l in a network of 
        order k is mapped to a path of length l+k-1 in the first-order network.
Maps a path in the higher - order network to a path in the first - order network . As an example the second - order path ( a - b b - c c - d ) of length two is mapped to the first - order path ( a b c d ) of length four . In general a path of length l in a network of order k is mapped to a path of length l + k - 1 in the first - order network .
def HigherOrderPathToFirstOrder(self, path):
        """
        Maps a path in the higher-order network 
        to a path in the first-order network. As an 
        example, the second-order path ('a-b', 'b-c', 'c-d')
        of length two is mapped to the first-order path ('a','b','c','d')
        of length four. In general, a path of length l in a network of 
        order k is mapped to a path of length l+k-1 in the first-order network. 

        @param path: The higher-order path that shall be mapped to the first-order network
        """
        p1 = self.HigherOrderNodeToPath(path[0])
        for x in path[1:]:
            p1 += (self.HigherOrderNodeToPath(x)[-1],)
        return p1
def HigherOrderPathToFirstOrder ( self , path ) : p1 = self . HigherOrderNodeToPath ( path [ 0 ] ) for x in path [ 1 : ] : p1 += ( self . HigherOrderNodeToPath ( x ) [ - 1 ] , ) return p1