CommunityDetection
CommunityDetection copied to clipboard
'Graph' object has no attribute 'node'
你好,请问运行LFM算法,报错“'Graph' object has no attribute 'node'”,是什么问题呀?
这是因为networkx不再支持G.node,现在支持方法G.nodes。
这是因为networkx不再支持G.node,现在支持方法G.nodes。
改完nodes之后还是报错。 报错为:'KeysView' object is not subscriptable
出错语句在这: