def subpaths_from_list(page_list):
    """
    Build node pairs (edges) from a list of page hits
    :param page_list: list of page hits
    :return: list of all possible node pairs
    """
    return [[page, page_list[i + 1]] for i, page in enumerate(page_list) if i < len(page_list) - 1]