-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new tests to show reuse after using clear, clear_edges, updated…
… docs
- Loading branch information
Showing
3 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
13 changes: 4 additions & 9 deletions
13
releasenotes/notes/add-clear-and-clear_edges-for-graphs-041b166aa541639c.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
--- | ||
prelude: > | ||
This is a commit to add the clear and clear_edges functions from StableGraph | ||
to PyGraph and PyDAG. | ||
features: | ||
- | | ||
Added a new function, :func:`clear` that clears all nodes and edges | ||
from the :class:`rustworkx.PyGraph` or :class:`rustworkx.PyDiGraph` object and | ||
sets the `node_removed` flag to `true`. | ||
from a :class:`rustworkx.PyGraph` or :class:`rustworkx.PyDiGraph` | ||
- | | ||
Added a new function, :func:`clear_edges` that clears all edges from the | ||
:class:`rustworkx.PyGraph` or :class:`rustworkx.PyDiGraph` object. Note | ||
that all nodes remain unchanged. | ||
Added a new function, :func:`clear_edges` that clears all edges for | ||
:class:`rustworkx.PyGraph` or :class:`rustworkx.PyDiGraph` without | ||
modifying nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters