>>> import networkx as nx>>> G1=nx.DiGraph>>> G1.add_edge(1,2)Traceback (most recent call last):File "<pyshell#2>", line 1, in <module>G1.add_edge(1,2)TypeError: unbound method add_edge() must be called with DiGraph instance as first argument (got int instance instead)
添加回答
举报
0/150
提交
取消