networkx画图报错 ValueError: max() arg is an empty sequence
错误描述用python的networkx包画图:importnetworkxasnximportmatplotlib.pyplotaspltg=nx.Graph()g.add_nodes_from([1,2,3,4,5])g.add_edges_from([(1,2),(2,3),(3,4),(4,5),(5,1)])nx.draw(g,with_labels=False)plt.show()控制