Guest User

Untitled

a guest
Sep 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. G=nx.DiGraph()
  2.  
  3. G.add_nodes_from(resultNodes)
  4. G.add_edges_from(resultEdges)
  5.  
  6. print("Nodes of graph: ")
  7. print(G.nodes())
  8. print("Edges of graph: ")
  9. print(G.edges())
  10.  
  11. nx.draw(G,with_labels=True,font_size=15,node_color='yellowgreen',node_size=1000)
Add Comment
Please, Sign In to add comment