Qiskit / rustworkx

A high performance Python graph library implemented in Rust.
https://www.rustworkx.org
Apache License 2.0
967 stars 140 forks source link

Update core's `lexicographical_topological_sort` to work with non-string keys. #1216

Closed kevinhartman closed 1 week ago

kevinhartman commented 3 weeks ago

Also improves error handling.

(We need this in Qiskit, for example, to support use from the new DAGCircuit Rust implementation, which does not use string keys.)

coveralls commented 2 weeks ago

Pull Request Test Coverage Report for Build 9627390023

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
rustworkx-core/src/err.rs 0 1 0.0%
rustworkx-core/src/dag_algo.rs 21 23 91.3%
src/lib.rs 6 10 60.0%
<!-- Total: 35 42 83.33% -->
Totals Coverage Status
Change from base Build 9622254860: 0.01%
Covered Lines: 17901
Relevant Lines: 18670

💛 - Coveralls