def path_edges_to_nodes(path):
    """
    Returns an ordered list of nodes given a list of edges
    
    Args:
        path - a path, as a sequence of edges
        
    Returns: An ordered list of nodes.
    """
    
    # Edge sequence initialization
    node_sequence = [path[0][0]]
    
    for i in range(len(path)):
        node_sequence.append(path[i][1])
        
    return node_sequence