You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'message': f'Not enough valid filtered nodes to create edges. Found {len(valid_filtered_nodes)} valid nodes out of {len(filtered_node_ids)} provided.',
165
+
'total_edges': 0,
166
+
'total_nodes': len(valid_filtered_nodes)
167
+
}
168
+
169
+
nodes=valid_filtered_nodes
170
+
print(f"Using {len(nodes)} filtered nodes for edge creation out of {len(existing_nodes)} total nodes")
171
+
else:
172
+
# Use all nodes if no filtering is applied
173
+
nodes=list(G.nodes())
174
+
iflen(nodes) <2:
175
+
return {'message': 'Not enough nodes to create edges'}
176
+
print(f"Using all {len(nodes)} nodes for edge creation")
0 commit comments