I am trying to create a graph F with a degree sequence of another graph G. The code is this
import networkx as nx
import matplotlib.pyplot as plt
# some code
deg_sequence = nx.degree(G).values()
print nx.is_valid_degree_sequence(deg_sequence)
F = nx.random_degree_sequence_graph(deg_sequence, seed=None, tries=10)
but I get this error
True
AttributeError: 'module' object has no attribute 'random_degree_sequence_graph'
I just updated Networkx. Am I doing something wrong?
print nx.__version__tell you? My networkx 1.6 has that method.