def node2vec_format(path, edges):
    """
    function that stores edges in a file in the format expected by node2vec algorithms.

    :param path: path to the file.
    :param edges:  list of edges
    """
    with open(path, 'w') as file:
        for edge in edges:
            u, v = edge
            file.write(f"{u} {v}\n")
    print(f"Test edges stored in node2vec expected format, at: {path}")
    return None