未验证 提交 e7bab064 编写于 作者: H Haochen Chen 提交者: GitHub

Merge pull request #104 from kokorinosoba/nx-patch

Fix from_networkx()
......@@ -262,7 +262,7 @@ def load_matfile(file_, variable_name="network", undirected=True):
def from_networkx(G_input, undirected=True):
G = Graph()
for idx, x in enumerate(G_input.nodes_iter()):
for idx, x in enumerate(G_input.nodes()):
for y in iterkeys(G_input[x]):
G[x].append(y)
......
......@@ -6,3 +6,4 @@ six>=1.7.3
gensim>=1.0.0
scipy>=0.15.0
psutil>=2.1.1
networkx>=2.0
......@@ -22,7 +22,8 @@ requirements = [
'six>=1.7.3',
'gensim>=1.0.0',
'scipy>=0.15.0',
'psutil>=2.1.1'
'psutil>=2.1.1',
'networkx>=2.0',
]
test_requirements = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册