We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shortest_path
#7161 updated the warning for shortest_path to indicate the return type (from dict to iterator) will occur in NetworkX 3.5.
#6584 changed the return type from dict to iterator, but #7161 didn't change the return type back to dict.
I expect shortest_path with no source or target to return an iterator over node, path pairs on main branch to be consistent with the warning.
>>> import networkx as nx >>> assert isinstance(nx.shortest_path(nx.complete_graph(4)), dict) # raises AssertionError
Python version: 3.10 NetworkX version: main branch
This is similar to issue #7315. I haven't fully compared #6584, #7161, and main branch to ensure consistency.
The text was updated successfully, but these errors were encountered:
Fix networkx#7339. shortest_path inconsisitent with warning
72905b6
e517554
Fix networkx#7339. shortest_path inconsisitent with warning (networ…
6fd49b4
…kx#7341)
No branches or pull requests
Current Behavior
#7161 updated the warning for
shortest_path
to indicate the return type (from dict to iterator) will occur in NetworkX 3.5.#6584 changed the return type from dict to iterator, but #7161 didn't change the return type back to dict.
Expected Behavior
I expect
shortest_path
with no source or target to return an iterator over node, path pairs on main branch to be consistent with the warning.Steps to Reproduce
Environment
Python version: 3.10
NetworkX version: main branch
Additional context
This is similar to issue #7315. I haven't fully compared #6584, #7161, and main branch to ensure consistency.
The text was updated successfully, but these errors were encountered: