Move collect_bicolor_runs()
functionality to rustworkx-core
#1166
Labels
rustworkx-core
Issues tracking adding functionality to rustworkx-core
The
collect_bicolor_runs()
function is only exposed via a Python interface currently:rustworkx/src/dag_algo/mod.rs
Lines 627 to 754 in ab93329
We should port it to rustworkx-core, so that rust users can leverage the function.
One tweak that probably makes sense for the rustworkx-core version is that instead of returning a
Vec
ofVec
s of node weights we should have it return of an iterator ofVec
s node ids. This would be more flexible and performant for rust space users and for the python side of rustworkx we can just collect the iterator to aVec
(for backwards compatibility).The text was updated successfully, but these errors were encountered: