• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / rustworkx / 29439951702
95%

Build:
DEFAULT BRANCH: main
Ran 15 Jul 2026 06:31PM UTC
Jobs 1
Files 118
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jul 2026 05:59PM UTC coverage: 94.682% (-0.01%) from 94.696%
29439951702

push

github

web-flow
Return neighbors in a deterministic order (#1638)

* Return neighbors in a deterministic order

PyGraph.neighbors, PyDiGraph.neighbors and PyDiGraph.neighbors_undirected
deduplicated their results through a HashSet and returned them via
`drain()`. The HashSet iteration order is randomized, so the order of the
returned node indices could change between runs and even between calls.

Deduplicate while preserving the graph's edge iteration order by filtering
through a `seen` set instead of draining a HashSet. This keeps the
multigraph deduplication behaviour but makes the ordering stable.

Also update the now-deterministic neighbors_undirected docstring example
and add regression tests asserting a stable order and correct dedup.

Fixes #1501

* Use IndexSet for deterministic ordering

---------

Co-authored-by: Ivan Carvalho <ivancarvalho@gatech.edu>

6 of 6 new or added lines in 2 files covered. (100.0%)

3 existing lines in 1 file now uncovered.

19227 of 20307 relevant lines covered (94.68%)

921596.36 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
86.73
-0.58% rustworkx-core/src/generators/random_graph.rs
Jobs
ID Job ID Ran Files Coverage
1 29439951702.1 15 Jul 2026 06:31PM UTC 118
94.68
GitHub Action Run
Source Files on build 29439951702
  • Tree
  • List 118
  • Changed 3
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29439951702
  • 5ff5a9f7 on github
  • Prev Build on main (#29039907914)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc