>>>G=nx.erdos_renyi_graph(2000,0.5)
>>>H=nx.copy()
The second line takes very less time while the third line takes a lot
of time. Why is replicating a graph taking so much time?
>>> H=nx.Graph(G)
which copies the edges with only a shallow copy of edge data.
Perhaps we should add this to the .copy() documentation.
Dan
I am sorry for the mistake in my previous email.
It wasn't H=nx.copy() it was H=G.copy()
Thank you for your input, I am still surprised why a copying action
takes so much time.
Sudarshan
> --
>
> You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
> To post to this group, send email to networkx...@googlegroups.com.
> To unsubscribe from this group, send email to networkx-discu...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=en.
>
>
>