Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G=nx.DiGraph()
- G.add_nodes_from(resultNodes)
- G.add_edges_from(resultEdges)
- print("Nodes of graph: ")
- print(G.nodes())
- print("Edges of graph: ")
- print(G.edges())
- nx.draw(G,with_labels=True,font_size=15,node_color='yellowgreen',node_size=1000)
Add Comment
Please, Sign In to add comment