Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
collect_bicolor_runs()
to rustworkx-core (#1186)
* Attempt with graph.node_weight * Progress until hitting error. * Return node ids instead of node weights. Code compiles!!! * Move collect_bicolor_runs.rs to rustworkx-core/src/dag_algo.rs * Add pyo3 wrapper for core collect_bicolor_runs, modify test, small fixes. * Fix DagHasCycle error to match previous type * Clean up unused parameters and functions, simplify error handling, add unit tests and reno. * Use PyResult, fix comments * Apply feedback from Matt's review, make tests make more sense. * Add suggestion from Matt's code review Co-authored-by: Matthew Treinish <[email protected]> * Remove stray print Co-authored-by: Matthew Treinish <[email protected]> * Change callbacks to take ids instead of weights, rename some variables in tests for clarity. * Fix test * Apply suggestions from code review Co-authored-by: Matthew Treinish <[email protected]> * Get rid of unused trait * Fix fmt --------- Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information