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

Qiskit / retworkx / 632
97%

Build:
DEFAULT BRANCH: master
Ran 16 Jul 2020 07:27PM UTC
Jobs 1
Files 5
Run time 15min
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

16 Jul 2020 07:23PM UTC coverage: 88.56% (-0.2%) from 88.781%
632

push

travis-ci-com

web-flow
Avoid use of Python in methods and functions (#98)

* Avoid use of python for in/out_edges

This commit reworks the generation of the output list from the
out_edges() and in_edges() methods for PyDiGraph/PyDAG. Previously these
methods were manually looping over the edges and constructing a Vec of
PyObjects from a tuple. This ends up being a performance bottleneck
because we need to call out to python on each iteration to convert the
tuple to a python object. Then we call out to python again at the end of
the method to convert the Vec to to a PyList and return that. Instead
this changes the logic to just generate a Vec<(source, target, weight)>
using map() over the iterator and return that. This relies on PyO3 to do
the conversion for us which ends up being faster because it happens once
at the end instead of on every iteration of the loop.

* Remove unecessary Python usage from other modules

Continuing from the previous commit removing unecessary Python usage
from in_edges() and out_edges() this continues the trend of switching to
using native rust objects where possible and only use Python when
necessary and offloading as much to implicit conversion to Python types
via the PyO3 generated interface.

* Remove unused PyResult<> outputs

* Fix cargo fmt

57 of 57 new or added lines in 3 files covered. (100.0%)

1347 of 1521 relevant lines covered (88.56%)

1233.66 hits per line

Jobs
ID Job ID Ran Files Coverage
3 632.3 16 Jul 2020 07:27PM UTC 0
88.56
Travis Job 632.3
Source Files on build 632
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #632
  • b539a544 on github
  • Prev Build on master (#628)
  • Next Build on master (#634)
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