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

Adding the GLANB Filter

parent 604c8a18
No related branches found
No related tags found
1 merge request!1Adding new methods and the consensual backbone
......@@ -16,7 +16,7 @@ def count_included_subarrays(arrays, target_array):
return count
def glanb(data, **kwargs):
def glanb(data, c=-1):
if isinstance(data, pd.DataFrame):
graph = nx.from_pandas_edgelist(data, edge_attr='weight', create_using=nx.Graph())
elif isinstance(data, nx.Graph):
......@@ -24,10 +24,7 @@ def glanb(data, **kwargs):
else:
print("data should be a panads dataframe or nx graph")
return
c = -1
for key, value in kwargs.items():
if key == 'c':
c = int(value)
if c == -1:
print("Please send the c value")
return
......
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