<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def edges_to_path(edges):
 """ Connect edges and return a path. """

    if not edges:
        return None

    G = edges_to_graph(edges)
    path = nx.topological_sort(G)
    return path