This release is a pre-release and may not be stable for production use.
# GraphvizAnim
[](https://travis-ci.org/mapio/GraphvizAnim) [](https://gitter.im/mapio/GraphvizAnim?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [](http://mybinder.org/repo/mapio/GraphvizAnim/examples/heapsort.ipynb)
GraphvizAnim is a tool to create simple animated graph visualizations; it is just a proof of concept, aimed mainly at teaching purposes. It is based on [Graphviz](http://www.graphviz.org/) for the graph rendering part and on [ImageMagick](http://www.imagemagick.org/) for the animated gif generation. You can [run the heap sort animation](http://mybinder.org/repo/mapio/GraphvizAnim/examples/heapsort.ipynb) on-line using [binder](http://mybinder.org/).
<p align=”center”> <img src=”examples/dfv.gif”/> <img src=”examples/heapsort.gif”/> </p>
A graph animation is just a sequence of steps, a step is in turn one or more actions such as: add, hilight, label, unlabel or remove a node, and add, hilight, or remove an edge. Animations can be built by invoking suitable methods of a gvanim.Animation object (in a Python program), or by parsing a simple text file (that, in turn, can be generated by a program in any language).
The [examples](examples) folder contains few instances of such approaches. After installing the package with python setup.py install, or using
pip install https://github.com/mapio/GraphvizAnim/archive/0.2-alpha.zip
you can generate an animated depth first visit (in a 3-regular random graph of 6 nodes) by running
python examples/dfv.py
or you can generate the simple animation described in [simple.txt](examples/simple.txt) as
python -m gvanim examples/simple.txt simple
You can generate an [Erdős–Rényi](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93R%C3%A9nyi_model) graph (with 10 nodes and edge probability 1/10) by running
cd examples gcc -o er er.c ./er | python -m gvanim er
Finally, you can obain an interactive visualization of the heap sort algorithm using [Jupyter](http://jupyter.org/) by running
cd examples jupyter notebook heapsort.ipynb
and running all the cells in order; or you can give a try to [binder](http://mybinder.org) and watch the above animation [actually running](http://mybinder.org/repo/mapio/GraphvizAnim/examples/heapsort.ipynb) on-line.
Metadata
Release files for GraphvizAnim 0.2-alpha
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| GraphvizAnim-0.2-alpha.tar.gz | 17.0 kB | Without provenance | Details for GraphvizAnim-0.2-alpha.tar.gz |
Release files / GraphvizAnim-0.2-alpha.tar.gz
| Download URL | GraphvizAnim-0.2-alpha.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7b2d76d0891fcb42b1fa164ac8709fe7e56be3cd45f19c2cce26796f2424ccb
|
|
BLAKE2b-256 checksum How to use checksums |
5794699b9dee5b57471f9b5541ae357daff5eeb9c5ce3a524feb28048ef9e0a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for GraphvizAnim 0.2-alpha
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.