I'm using Pycharm with Python 3.6. The following code produces a "Process finished with exit code -1073741819 (0xC0000005)". Error is from the line "nx.draw(G)".
import networkx as nx
import numpy as np
Ag = np.array(
[
[0, 1, 1, 1, 0, 0, 0, 0],
[1, 0, 1, 1, 0, 0, 0, 0],
[1, 1, 0, 1, 0, 1, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 1, 0, 0],
[0, 0, 1, 0, 1, 0, 1, 0],
[0, 0, 0, 0, 0, 1, 0, 1],
[0, 0, 0, 0, 0, 0, 1, 0],
]
)
G = nx.from_numpy_array(Ag)
nx.draw(G)
User contributions licensed under CC BY-SA 3.0