Hey All, I struggle to find a solution to this issue.
I created a graph with
> G = nx.from_numpy_array(A)
that has the following nr of nodes:
> nx.number_of_nodes(G)
5084
After I save it:
> nx.write_edgelist(G,'edge_list.nx')
and read again
graph = nx.read_edgelist('edge_list.nx')
I get a different number of nodes:
> nx.number_of_nodes(graph)
5079
Why?
Input numpy array attached.