def _edges_from_path(lst: list) -> list[tuple]:
    """Return a list of edges form the given path"""
    edges = []

    for index in range(len(lst) - 1):
        edges.append((lst[index], lst[index + 1]))

    return edges