-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into more-greedy-color
- Loading branch information
Showing
36 changed files
with
3,230 additions
and
432 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/fix-digraph-find-cycle-141e302ff4a8fcd4.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed the behavior of :func:`~rustworkx.digraph_find_cycle` when | ||
no source node was provided. Previously, the function would start looking | ||
for a cycle at an arbitrary node which was not guaranteed to return a cycle. | ||
Now, the function will smartly choose a source node to start the search from | ||
such that if a cycle exists, it will be found. | ||
other: | ||
- | | ||
The `rustworkx-core` function `rustworkx_core::connectivity::find_cycle` now | ||
requires the `petgraph::visit::Visitable` trait. |
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-mpl-draw-kargs-typing-6cf7cfde0db072d5.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug in the type hint for the :func:`~rustworkx.visualization.mpl_draw`. | ||
Previously, all `kwargs` were required when calling the method. The new annotation | ||
accepts `kwargs` with partial arguments. |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
features: | ||
- | | ||
Node contraction is now supported for ``petgraph`` types ``StableGraph`` | ||
and ``GraphMap`` in rustworkx-core. To use it, import one of the ``ContractNodes*`` traits | ||
from ``graph_ext`` and call the ``contract_nodes`` method on your graph. | ||
- | | ||
All current ``petgraph`` data structures now support testing for parallel | ||
edges in ``rustworkx-core``. To use this, import ``HasParallelEdgesDirected`` | ||
or ``HasParallelEdgesUndirected`` depending on your graph type, and call | ||
the ``has_parallel_edges`` method on your graph. | ||
- | | ||
A new trait ``NodeRemovable`` has been added to ``graph_ext`` module in | ||
``rustworkx-core`` which provides a consistent interface for performing | ||
node removal operations on ``petgraph`` types ``Graph``, ``StableGraph``, | ||
``GraphMap``, and ``MatrixGraph``. To use it, import ``NodeRemovable`` from | ||
``graph_ext``. |
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/hyperbolic-random-graph-d85c115930d8ac08.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
features: | ||
- | | ||
Adds new random graph generator function, :func:`.hyperbolic_random_graph` | ||
to sample the hyperbolic random graph model. | ||
- | | ||
Adds new function to the rustworkx-core module ``rustworkx_core::generators`` | ||
``hyperbolic_random_graph()`` that samples the hyperbolic random graph model. |
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/lexicographical-topo-sort-core-e85fba409d612600.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new function ``lexicographical_topological_sort`` to the | ||
``rustworkx_core::dag_algo`` module. That is a gneric Rust implementation | ||
for the core rust library that provides the | ||
:func:`.lexicographical_topological_sort` function to Rust users. |
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/migrate-longest_path-7c11cf2c8ac9781f.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new module ``dag_algo`` to rustworkx-core which contains a new function ``longest_path`` | ||
function to rustworkx-core. Previously the ``longest_path`` functionality for DAGs was only exposed | ||
via the Python interface. Now Rust users can take advantage of this functionality in rustworkx-core. | ||
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
features: | ||
- | | ||
Adds new random graph generator in rustworkx for the stochastic block model. | ||
There is a generator for directed :func:`.directed_sbm_random_graph` and | ||
undirected graphs :func:`.undirected_sbm_random_graph`. | ||
- | | ||
Adds new function ``sbm_random_graph`` to the rustworkx-core module | ||
``rustworkx_core::generators`` that samples a graph from the stochastic | ||
block model. |
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
Oops, something went wrong.