def start_end_edges_subpath_list(subpath_list):
    """
    First/last node pairs (edges) from list of node pairs
    :param subpath_list: list of node pairs
    :return: first and last node pairs
    """
    return subpath_list[0], subpath_list[-1]