Hey all, I've got matrice of adjacency and I have to draw a graph in Python. My code is looking like this, but it still doesn't work...
import matplotlib.pyplot as plt
## G = nx.Graph()
G = nx.MultiGraph()
## G = nx. iGraph()
nodes=["0", "1", "2", "3", "4"]
G.add_nodes_from(nodes)
G.add_edge("0","3")
G.add_edge("0","3")
G.add_edge("0","3")
G.add_edge("0","1")
G.add_edge("1","2")
G.add_edge("1","4")
G.add_edge("1","4")
G.add_edge("3","4")
print(G.nodes())
print(G.edges())
nx.draw(G, with_labels = True)
plt.savefig("simple_path.png")
plt.show()```