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
There are a number of functions that contain checks for a node or edge list being contained within a network. For very large networks and very large lists, this becomes an n^2 operation. I recently verified that for a million node network, the check in load_table_data() took longer than 2 days (before I gave up).
The general pattern is to create a comprehension and then test whether True or False is in the comprehension.
For example:
test_present = [x in all_names for x in node_suids]
if not False in test_present:
return node_suids
There are a number of functions that contain checks for a node or edge list being contained within a network. For very large networks and very large lists, this becomes an n^2 operation. I recently verified that for a million node network, the check in load_table_data() took longer than 2 days (before I gave up).
The general pattern is to create a comprehension and then test whether True or False is in the comprehension.
For example:
These can be found in:
The text was updated successfully, but these errors were encountered: