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

Qiskit / retworkx / 665
97%

Build:
DEFAULT BRANCH: master
Ran 12 Aug 2020 03:12PM UTC
Jobs 1
Files 7
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

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

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>

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

1503 of 1665 relevant lines covered (90.27%)

1129.52 hits per line

Jobs
ID Job ID Ran Files Coverage
3 665.3 12 Aug 2020 03:12PM UTC 0
90.27
Travis Job 665.3
Source Files on build 665
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #665
  • 69961e4c on github
  • Prev Build on master (#661)
  • Next Build on master (#669)
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