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

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

Build:
DEFAULT BRANCH: master
Ran 12 Aug 2020 03:12PM UTC
Files 7
Run time 32s
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

12 Aug 2020 03:08PM UTC coverage: 90.27% (+1.1%) from 89.132%
665.3

push

travis-ci-com

web-flow
Add to_dot method to PyGraph and PyDiGraph (#103)

* Add to_dot method to PyGraph and PyDiGraph

This commit adds a new method to PyGraph and PyDiGraph, to_dot(), which
is used to generate a graphviz dot file for a graph object. The
implementation of this is influenced by petgraph's built-in dot module
[1].

[1] https://github.com/petgraph/petgraph/blob/0.5.1/src/dot.rs

* Expand test coverage

* Add new doc requirements to rtd conda env

* Close before remove for windows

* Apply suggestions from code review

Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com>

* Make node_attrs and edge_attrs default to None

This commit changes the node_attrs and edge_attrs callables to be opt-in
and default to None. This makes the user burden lower because if you
don't require extra formatting this simplifies the call signature.

* Fix return types from to_dot methods

The to_dot methods were documented as returning a string if filename was
not specified, but we were returing a bytes object not a string. This
commit corrects the return type to convert the bytes array to a string
primitive and returning that instead of the raw PyBytes object.

Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com>

1503 of 1665 relevant lines covered (90.27%)

1129.52 hits per line

Source Files on job 665.3
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 206
  • Travis Job 665.3
  • 69961e4c on github
  • Prev Job for on master (#661.3)
  • Next Job for on master (#669.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