error
[PYTHON] random_state_index is incorrect
소금깨
2021. 11. 3. 15:06
상황
networkx 임포트 후, nx.draw 함수 사용 시 아래와 같은 문제 발생
networkx.exception.NetworkXError: random_state_index is incorrect
해결방법
pip install decorator==4.3 로 재설치 후 사용 가능.
그래도 안된다면 아래 링크 확인
https://stackoverflow.com/questions/66922359/unexpected-error-while-drawing-networkx-graph
Unexpected error while drawing networkx graph
I have a simple graph and need to draw it on my screen, here is my code: def gera_grafo(matriz): grafo = nx.to_networkx_graph(matriz, create_using=nx.Graph) nx.draw(grafo) plt.show() return grafo
stackoverflow.com