You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread '<unnamed>' panicked at /home/barak-katzir/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fixedbitset-0.5.7/src/lib.rs:486:9:
put at index 10 exceeds fixedbitset size 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "/home/barak-katzir/dev/rustworkx-check/t.py", line 7, in <module>
rx.descendants(graph, 10)
pyo3_runtime.PanicException: put at index 10 exceeds fixedbitset size 5
and similarly for rustworkx.descendants.
The text was updated successfully, but these errors were encountered:
Information
f2f45425c70b49d89aa5527271a34f64fb114f1d
)What is the current behavior?
When calling
rustworkx.ancestors
orrustworkx.descendants
with index not in graph aPanicExpection
is raisedI haven't checked, but I suspect that this bug is also present in
rustworkx-core
.What is the expected behavior?
I expected either an
IndexError
or an emptyset
(similar to saypredecessor_indices
method that return an emptyNodeIndices
in similar situation).Steps to reproduce the problem
When run
python t.py
I getand similarly for
rustworkx.descendants
.The text was updated successfully, but these errors were encountered: