-
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.
Add binomial tree graph generator (#299)
Related to #150 * Add binomial tree graph Add binomial tree graph for a given order. * update documentation * add release notes * lint * lint * lint * fix docs * remove option for order * change order to u32 This is done because that for `pow`method a u32 is needed. * clippy * add directed binomial tree graph * lint * fix positional argument Co-authored-by: Matthew Treinish <[email protected]> * updated test Co-authored-by: Matthew Treinish <[email protected]> * updated tests Co-authored-by: Matthew Treinish <[email protected]> * add case mismatch weights * add edgelist assertion * lint * add find_edge before adding edge `find_edge`makes sure that you don't add repeated edges on the graph * add bidirectional tests * clippy * lint * lint * run black * fix merge leftover * fix lint * add newline release notes * add `.is_none()` assertion Co-authored-by: Matthew Treinish <[email protected]> * `order` required arg Co-authored-by: Matthew Treinish <[email protected]> * `order` required arg Co-authored-by: Matthew Treinish <[email protected]> * Use `.is_none()` instead of `== None` everywhere * Run cargo fmt Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
Showing
4 changed files
with
450 additions
and
0 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
4 changes: 4 additions & 0 deletions
4
releasenotes/notes/add-binomial-tree-graph-generator-1f6ff6ba3809b901.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,4 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new generator for constructing a binomial tree graph (:func:`retworkx.generators.binomial_tree_graph`). |
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.