def list_to_dict(node_list: list):
    """
    Convert the list to a dictionary,
    Create a dictionary, key is a element in the list,
    value is a element which next the key, if no exists, the value is None.
    Args:
        node_list (list): normal, list of node

    Returns:
        schema (dict): a dictionary
    """
    length = len(node_list)
    if length == 0:
        schema = {}
    elif length == 1:
        schema = {node_list[0]: None}
    else:
        new_node_list = node_list[1:]
        new_node_list.append(None)
        schema = {k: v for k, v in zip(node_list, new_node_list)}

    return schema