-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compute maximum bisimulation using Paige-Tarjan's Algorithm (#1089)
* fighting a lot with the borrowchecker and dont want to wrap in cells * rewrote initialization * adjusted build_counterimage to work with new blocks * Rewrote group_by_counterimage and split. Added new CounterImageGroup * removed repartition and instead expanded the split function * fixed various bugs * added return iterator * added tests * typing stubs * added docs and fixed styling * added release notes * removed unnecessary categories from release notes * use Entry enum instead of .contains_key to fill Hash Map * adjusted test to use self.subTest * improved error handling * removed unused enum * Added test for multigraph compatibility * fixed multigraph compatability * added comment * added new custom return type IndexPartitionBlock * adjusted release notes and fixed formatting * added typing stubs for IndexPartitionBlock * included IndexPartitionBlock in lib.rs * changed types to work with new custom_vec_iter_impl! macro * fixed broken stubs --------- Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
- Loading branch information
1 parent
097e90c
commit be22da1
Showing
7 changed files
with
624 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
releasenotes/notes/maximum-bisimulation-942a9d0dc9b46ee4.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,17 @@ | ||
features: | ||
- | | ||
Added a new function :func:`~rustworkx.digraph_maximum_bisimulation` to | ||
compute the maximum bisimulation or relational coarsest partition of a | ||
graph. This function is based on the algorithm described in the publication | ||
"Three partition refinement algorithms" by Paige and Tarjan. This function | ||
recieves a graph and returns a | ||
:class:`~rustworkx.RelationalCoarsestPartition`. This function is in regards | ||
to issue `#1075 <https://github.com/Qiskit/rustworkx/issues/1075>`__. | ||
- | | ||
Added a new class :class:`~rustworkx.RelationalCoarsestPartition` to output | ||
the maximum bisimulation or relational coarsest partition of a graph. This | ||
class contains instances of :class:`~rustworkx.IndexPartitionBlock` and can be | ||
iterated over. | ||
- | | ||
Added a new class :class:`~rustworkx.IndexPartitionBlock` to output | ||
a block of a node partition. This class is an iterator over node indices. |
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
Oops, something went wrong.