Skip to content
Snippets Groups Projects

Adding new methods and the consensual backbone

Merged Ali Yassin requested to merge dev into main
1 file
+ 2
5
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading