I am trying to draw simple graph with networkx and Python.
This is my code:
import networkx as nx
import matplotlib.pyplot as plt
G = nx.complete_graph(5)
nx.draw(G, with_labels=True, font_weight='bold')
plt.show()
but I am getting the error
Message=random_state_index is incorrect
Source=***\PythonTest.py
StackTrace:
File "***\PythonTest.py", line 15, in <module>
nx.draw(G, with_labels=True)
Python 3.7 64bit
OS Windows
networkx 2.2 ,2.3 or 2.5 have the same problem.