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

Refactorings Code and Adding Node Filter

parent ecd1c411
No related branches found
No related tags found
1 merge request!1Adding new methods and the consensual backbone
......@@ -66,6 +66,8 @@ def fraction_filter(backbone, value, narrate=True, secondary_property='weight',
value = math.ceil(value * len(backbone.graph))
print(value)
print(list(data[:value].index))
b.remove_nodes_from(list(data[:value].index))
return b
......
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