def edges_from_path(path):
    """
    Converts the list of path nodes into a list of path edges 
    ----------
    path: list of path nodes
    Returns
    -------
    path of edge: list of path edges
    """
    return list(zip(path,path[1:]))