def DrawGraph(G):
pos = nx.spring_layout(G)
nx.draw(G, pos, with_labels = True, node_color ='blue') #with_labels=true is to show the node number in the output graph
return pos
#main function
topological_sort.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录