def start_end_page(page_list):
    """
    Find start and end pages (nodes) in a list of page hits
    :param page_list: list of page hits
    :return: start and end nodes
    """
    if len(page_list) == 1:
        return page_list[0]
    else:
        return page_list[0], page_list[-1]