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

Qiskit / retworkx / 470
97%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2020 06:55PM UTC
Jobs 1
Files 3
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

03 Jun 2020 06:52PM UTC coverage: 81.094% (+0.8%) from 80.253%
470

push

travis-ci-com

web-flow
Add support for deepcopy/pickle to PyGraph (#74)

* Add support for deepcopy/pickle to PyGraoh

The PyGraph class was missing a __getstate__ and __setstate__ function
which were needed to enable support for pickling and deepcopy. This
commit adds the missing methods so PyGraph objects can be deepcopied.
One note on the test is that there aren't isomorphism functions that
support the pygraph type yet due to typing constraints a new trait will
need to be added for both PyGraph and PyDAG to leverage the existing
function. Until then the tests just assert that deepcopy() doesn't raise
and returns a PyGraph object.

* Fix rustfmt

* Fix handling of holes in __setstate__

This commit fixes an issue with the handling of holes in node indexes in
__setstate__. The previous version of the logic was incorrectly
calculating how many temporary nodes to create to artificially increase
the node count to match the value in state. Additionally, the previous
functionality was incorrectly assuming a node index wouldn't be reused,
this isn't the case. So the logic was adjust to add all temporary nodes,
then add the node from the state, and then remove the temporary nodes.
This will have the desired effect of handling holes correctly and have
the node indexes after a pickle or deepcopy match the state before.

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

875 of 1079 relevant lines covered (81.09%)

1911.41 hits per line

Jobs
ID Job ID Ran Files Coverage
3 470.3 03 Jun 2020 06:55PM UTC 0
81.09
Travis Job 470.3
Source Files on build 470
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #470
  • 0e5b7178 on github
  • Prev Build on master (#466)
  • Next Build on master (#476)
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