我有一段较旧的依赖于networkx的代码。我在最后一行得到一个错误:
# Generate a random graph with the appropriate degree sequence.
left_sequence = [left_degree for x in range(L)]
right_sequence = [right_degree for x in range(R)]
# Need to use `create_using=Graph()` or else networkx will create a
# multigraph.
graph = bipartite_configuration_model(left_sequence, right_sequence,
create_using=Graph(), seed=seed)在较新版本的networkx中,什么功能取代了bipartite_configuration_model?
发布于 2020-09-22 17:12:13
我在networkx 1.9文档中找到的bipartite_configuration_model方法与configuration_model相同,后者被移到bipartite模块中。据我所知,这是在迁移到2.0时完成的,但我没有找到任何明确提到这一点的地方。
https://stackoverflow.com/questions/64006070
复制相似问题