Skip to content
Snippets Groups Projects
Commit cd935194 authored by Yassin's avatar Yassin
Browse files

Refactorings Code and Adding Node Filter

parent e3f9d347
No related branches found
No related tags found
1 merge request!1Adding new methods and the consensual backbone
......@@ -61,7 +61,7 @@ def fraction_filter(backbone, value, narrate=True, secondary_property='weight',
return nx.from_pandas_edgelist(data[:value], edge_attr=edge_properties(data))
else:
b = backbone.graph.copy()
b.remove_noedes_from(list(data[:value].index))
b.remove_nodes_from(list(data[:value].index))
return b
print("The accepted filters for " + backbone.method_name + " are: " + ', '.join(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment