Qiskit / rustworkx

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

Fix panic error at shortest paths #1134

Closed JPena-code closed 5 months ago

JPena-code commented 5 months ago

In #1117 is presented the presence of an uncaught pyo3.PanicException when the index of the source node is no out of bound in the graph. With this naive approach i try fix this issue raising a more understandable IndexError.

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 8207084623

Details


Files with Coverage Reduction New Missed Lines %
src/shortest_path/all_pairs_bellman_ford.rs 6 95.53%
<!-- Total: 6 -->
Totals Coverage Status
Change from base Build 8147160812: -0.02%
Covered Lines: 17151
Relevant Lines: 17783

💛 - Coveralls