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

Qiskit / rustworkx / 9429147177
94%

Build:
DEFAULT BRANCH: main
Ran 08 Jun 2024 01:48PM UTC
Jobs 1
Files 104
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

08 Jun 2024 01:33PM UTC coverage: 95.841% (+0.007%) from 95.834%
9429147177

push

github

web-flow
Hyperbolic generator improvements + fix (#1212)

* add hyperbolic random graph model generator

* Loosen trait constraints and simplify structure for longest_path (#1195)

In the recently merged #1192 a new generic DAG longest_path function was
added to rustworkx-core. However, the trait bounds on the function were
a bit tighter than they needed to be. The traits were forcing NodeId to
be of a NodeIndex type and this wasn't really required. The only
requirement that the NodeId type can be put on a hashmap and do a
partial compare (that implements Hash, Eq, and PartialOrd). Also the
IntoNeighborsDirected wasn't required because it's methods weren't ever
used. This commit loosens the traits bounds to facilitate this. At the
same time this also simplifies the code structure a bit to reduce the
separation of the rust code structure in the rustworkx crate using
longest_path().

* use vector references

* change to slice (clippy)

* generalize to H^D, improve numerical accuracy

* allow infinite coordinate

* handle infinity in hyperbolic distance

* remove unused import (clippy)

* fix python stub

* Rename deprecated cargo config file (#1211)

This commit migrates the .cargo/config file which has been deprecated to
the new path .cargo/config.toml. This will fix warnings that are emitted
when compiling with the latest stable release. This new path has been
supported since Rust 1.38 which is much older than our current MSRV of
1.70.

* fix hyperbolic distance, swap r and beta, infer time coordinate

* use mul_add in hyperbolic distance, remove release note

* replace clone with dereference

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

19 of 21 new or added lines in 2 files covered. (90.48%)

1 existing line in 1 file now uncovered.

17352 of 18105 relevant lines covered (95.84%)

1166868.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
85.47
0.44% rustworkx-core/src/generators/random_graph.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.47
0.44% rustworkx-core/src/generators/random_graph.rs
Jobs
ID Job ID Ran Files Coverage
1 9429147177.1 08 Jun 2024 01:48PM UTC 104
95.84
GitHub Action Run
Source Files on build 9429147177
  • Tree
  • List 104
  • Changed 18
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9429147177
  • 2ad86a48 on github
  • Prev Build on main (#9421992816)
  • Next Build on main (#9447555728)
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

© 2025 Coveralls, Inc