>>> 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)
翻过高山走不出你
有只小跳蛙
相关分类