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

Qiskit / retworkx / 481
97%

Build:
DEFAULT BRANCH: master
Ran 05 Jun 2020 02:48PM UTC
Jobs 1
Files 3
Run time 14min
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

05 Jun 2020 02:38PM UTC coverage: 81.737% (+0.6%) from 81.094%
481

push

travis-ci-com

web-flow
Add adjacency_matrix functions (#75)

* Add adjacency_matrix functions

This commit adds 2 new functions to the retworkx module,
graph_adjacency_matrix and dag_adjacency_matrix for returing the
adjacency matrix as a numpy array for PyGraph and PyDAG respectively.

* Add tests

* Add docs

* Use into_pyarray instead of to_pyarray

Previously the new functions here were using .to_pyarray() which will
take the rust side array allocate a new numpy array on the python heap
and then copy the elements to that new numpy array. This can get
inefficient for large matrixes because it has to copy each element.
Instead we can leverage .into_pyarray() which creates a numpy array with
a pointer to the array in the rust heap (which is not at all a confusing
distinction for a 2 character difference). This commit makes the change
to ensure the conversion to numpy doesn't become a bottleneck.

* Add more tests and document index hole edge-case

37 of 37 new or added lines in 1 file covered. (100.0%)

913 of 1117 relevant lines covered (81.74%)

1847.41 hits per line

Jobs
ID Job ID Ran Files Coverage
3 481.3 05 Jun 2020 02:48PM UTC 0
81.74
Travis Job 481.3
Source Files on build 481
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #481
  • ddf1e16a on github
  • Prev Build on master (#476)
  • Next Build on master (#484)
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