Skip to content

Commit 90fbd9f

Browse files
authored
replaced deprecated networkx function
1 parent 82efc62 commit 90fbd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metaknowledge/bin/metaknowledgeCLI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def getThresholds(clargs, grph):
259259
('5', "Remove nodes below some degree"),
260260
('6', "Remove nodes above some degree"),
261261
])
262-
print("The network contains {0} nodes and {1} edges, of which {2} are isolated and {3} are self loops.".format(len(list(grph.nodes())), len(list(grph.edges())), len(list(nx.isolates(grph))), len(list(grph.selfloop_edges()))))
262+
print("The network contains {0} nodes and {1} edges, of which {2} are isolated and {3} are self loops.".format(len(list(grph.nodes())), len(list(grph.edges())), len(list(nx.isolates(grph))), len(list(nx.selfloop_edges(grph)))))
263263
thresID = int(inputMenu(thresDict, header = "What type of filtering to you want? "))
264264
if thresID == 0:
265265
return grph

0 commit comments

Comments
 (0)