def PrintGraph(self,Graph): labels = {} plt.figure(figsize=(12,12)) pox=nx.spring_layout(Graph) for node in Graph.nodes(): labels[node]='$'+str(node)+'$' nx.draw_networkx(Graph,pox,labels) plt.show()