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

Qiskit / retworkx / 481 / 3
97%
master: 97%

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

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

913 of 1117 relevant lines covered (81.74%)

1847.41 hits per line

Source Files on job 481.3
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 62
  • Travis Job 481.3
  • ddf1e16a on github
  • Prev Job for on master (#476.3)
  • Next Job for on master (#484.3)
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