'Get all nodes from all paths
@param paths: list of multi-paths'

@staticmethod
def all_nodes(paths):

    nodes = []
    for p in paths:
        n = [i for i in p.nodes() if (i not in nodes)]
        nodes.extend(n)
    return nodes
