我有一个名为Reed98.edgelist
. 我正在使用 networkx 将其读取并绘制为图形。出现此错误:
C:\Python26\lib\site-packages\networkx-1.7-py2.6.egg\networkx\drawing\layout.py:369: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument
pos+=(displacement*t/length).T
C:\Python26\lib\site-packages\networkx-1.7-py2.6.egg\networkx\drawing\layout.py:514: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument
pos[:,i]*=scale/lim
我的代码:
import networkx as nx
import pylab as plt
G=nx.read_edgelist('Reed98.edgelist')
nx.draw(G)
plt.show()
使用示例边缘列表,例如:
0 2
0 3
0 5
0 9
0 602
0 11
1 443
1 445
1 456
1 463
1 478
2 134
2 136
2 9
2 10
.......
.......