Python NetworkX error: module 'networkx.drawing' has no attribute 'graphviz_layout'
问题 I am teaching myself Python and NLTK for work using the book "Natural Language Processing with Python" ("www.nltk.org/book"). I am stuck on Chapter 4 Section 4 part 8 on NetworkX. When I try to run example 4.15, it should draw a graph, but instead I get the following error message: AttributeError: module 'networkx.drawing' has no attribute 'graphviz_layout' The culprit code line appears to be >>> nx.draw_graphviz(graph, node_size = [16 * graph.degree(n) for n in graph], node_color = [graph