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
networkx returns a generator from e.g. rx.all_simple_paths. That is useful for very large graphs with many possible paths, since
we can loop over the generator without filling the memory and break if other conditions are fulfilled.
Ps.: The documentation for rx.all_simple_paths needs to be fixed: the arguments name is not from_ but origin.
(Signature: rx.all_simple_paths(graph, from_, to, min_depth=None, cutoff=None)
The text was updated successfully, but these errors were encountered:
It would be nice but it would require a major redesign in the way we do iterators. Until coroutines are stable we don't really have an equivalent for Python's yield keyword that is trivial to implement.
With regards to the from_ argument, the argument has different names in the type-agnostic all_simple_paths and the type-specific digraph_all_simple_paths. But it is a positional-only argument so it doesn't matter
What is the expected enhancement?
networkx returns a generator from e.g. rx.all_simple_paths. That is useful for very large graphs with many possible paths, since
we can loop over the generator without filling the memory and break if other conditions are fulfilled.
Ps.: The documentation for rx.all_simple_paths needs to be fixed: the arguments name is not
from_
butorigin
.(Signature: rx.all_simple_paths(graph, from_, to, min_depth=None, cutoff=None)
The text was updated successfully, but these errors were encountered: