Reputation: 180
In my code:
import networkx as nx
G=nx.Graph()
G.add_edges_from([(2, 3),(4, 5), (1, 3), (1, 2), (1, 5), (1, 4), (2, 4), (3, 5), (2, 5), (3, 4)])
nx.generate_graph6(G)
I am getting this error:
AttributeError: module 'networkx' has no attribute 'generate_graph6'
I can't really understand what is this problem. Can I get some help understanding and solving this?
Upvotes: 1
Views: 1987
Reputation: 4892
Frome the networkx
documentation there is a difference between the versions:
See documentation of 1.10 and of current version
It looks like the generate_graph6
method was removed.
If you want to know the details, you can take a look at the commit, which removed generate_graph6
. Their it states that you can simulate the behaviour of generate_graph6
with write_graph6
.
Hope this helps.
Upvotes: 1