Advertisement
JoelSjogren

graph draw example

Apr 2nd, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. oel@joel-laptop:~/Insync/Desktop/graphs$ python3
  2. Python 3.5.2+ (default, Sep 22 2016, 12:18:14)
  3. [GCC 6.2.0 20160927] on linux
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> from drcubic import *
  6. >>> import matplotlib.pyplot as plt
  7. >>> G=nx.cycle_graph(5)
  8. >>> nx.draw(G)
  9. >>> plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement