Repository navigation
modifies bfs_edges and adds warning to generic_bfs_edges - #5925
Conversation
|
Sorry for the delay in the review @still-n0thing. Could you update this deprecation notice and also add this to https://github.com/networkx/networkx/blob/main/doc/developer/deprecations.rst so we can keep a track of what to remove when 3.2 comes around :) Thanks! |
|
Is there a reason to split out the deprecations.rst change from the PR itself? Not a big deal, but it seems easier to keep them together -- but I might be missing something. |
@dschult Should I add the deprecations.rst changes to this PR? and what about the unit tests should I change it here or create another PR? |
|
Yes -- please:
The tests seem to need more work... I don't see any tests of the The test of the deprecation can look something like: with pytest.deprecated_call():
nx.generic_bfs_edges(self.G, source=1, sort_neighbors=sorted) |
Updates the version number Co-authored-by: Mridul Seth <[email protected]>
Co-authored-by: Dan Schult <[email protected]>
dde4f2d to
37a31b3
Compare
…etworkx#5925) * modifies bfs_edges * fixes unused import * Update networkx/algorithms/traversal/breadth_first_search.py Updates the version number Co-authored-by: Mridul Seth <[email protected]> * Update networkx/algorithms/traversal/breadth_first_search.py Co-authored-by: Dan Schult <[email protected]> * Add deprecation warnings and tests of warn --------- Co-authored-by: Mridul Seth <[email protected]> Co-authored-by: Dan Schult <[email protected]> Co-authored-by: Mridul Seth <[email protected]>
…etworkx#5925) * modifies bfs_edges * fixes unused import * Update networkx/algorithms/traversal/breadth_first_search.py Updates the version number Co-authored-by: Mridul Seth <[email protected]> * Update networkx/algorithms/traversal/breadth_first_search.py Co-authored-by: Dan Schult <[email protected]> * Add deprecation warnings and tests of warn --------- Co-authored-by: Mridul Seth <[email protected]> Co-authored-by: Dan Schult <[email protected]> Co-authored-by: Mridul Seth <[email protected]>
…etworkx#5925) * modifies bfs_edges * fixes unused import * Update networkx/algorithms/traversal/breadth_first_search.py Updates the version number Co-authored-by: Mridul Seth <[email protected]> * Update networkx/algorithms/traversal/breadth_first_search.py Co-authored-by: Dan Schult <[email protected]> * Add deprecation warnings and tests of warn --------- Co-authored-by: Mridul Seth <[email protected]> Co-authored-by: Dan Schult <[email protected]> Co-authored-by: Mridul Seth <[email protected]>
sort_neighborsargument ingeneric_bfs_edgesbfs_edgeswhere it callsgeneric_bfs_edgeswith onlyneighborsparameters.#5871