drawing a huge graph with networkx and matplotlib,plt.savefig('graph.pdf')