• Stars
    star
    476
  • Rank 92,280 (Top 2 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tool to create animated graph visualizations, based on graphviz.

GraphvizAnim

Build Status Binder DOI

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 for the graph rendering part and on ImageMagick for the animated gif generation. You can run the heap sort animation on-line using binder.

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 folder contains few instances of such approaches. After installing the package with python setup.py install, or using

pip install GraphvizAnim

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 as

python -m gvanim examples/simple.txt simple

You can generate an Erdős–Rényi 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 by running

cd examples
jupyter notebook heapsort.ipynb

and running all the cells in order; or you can give a try to binder and watch the above animation actually running on-line.

More Repositories

1

nofussbm

No Fuss Bookmarks
HTML
119
star
2

programming-with-escher

A Python implementation of "Functional Geometry" by Peter Henderson
Jupyter Notebook
102
star
3

prettytable-mirror

A mirror of the prettytable repo (on Google Code)
Python
78
star
4

labprog

Dieci anni di esercizi di programmazione
Java
51
star
5

kiss

Keep It Secret Stupid – A self-contained (static) web page able to keep a secret…
JavaScript
34
star
6

tmux-tail-f

A tool to tail multiple files using tmux
Shell
32
star
7

instagram-news-cli

A quick and dirty hack to read you Instagram news feed from the command line
Python
17
star
8

OpticalIllusions

Some Python code to reproduce a nice optical illusion found on the web.
Jupyter Notebook
16
star
9

py-web-graph

A simple package allowing to use WebGraph data in Python (via the Jython interpreter).
Python
11
star
10

jupyter-virtualenv-osx

A tool to install a kernelspec referring to an existing virtualenv — perfect for running a matplotlib notebook in OSX.
Python
9
star
11

markovdrummer

An experiment in algorithmic generation of drum grooves.
Python
9
star
12

sinuous-violin

Playing with Fourier analysis of sounds
Jupyter Notebook
6
star
13

heroku-log4mongo

A trick to use mongolab and log4mongo to obtain free cloud logging for Heroku apps
Python
5
star
14

soglie-tre

A command line tool to get usage data for Tre
Shell
4
star
15

docker-tutorial

A collection of Dockerfiles and scripts used for a simple introduction to docker
HTML
4
star
16

nokia-gsm-location-hacks

A collection of hacks written in Python for Nokia phones running Symbian 60
Python
4
star
17

advent-of-code-2022

My (quick and dirty) solutions for Advent of Code 2022 edition
Python
4
star
18

fp-spa-2019

Repository del corso "SPA con ECMAScript 9, Vue.js e GraphQL" @ UniMI 2019
JavaScript
3
star
19

advent-of-code-2019

My quickest and dirtiest (quite shameful) solutions to AOC 2019
Python
3
star
20

nswp

Not So Weak Passowrds, a password generator based on SHA1
JavaScript
3
star
21

codebox4im

Ambiente virtuale di supporto all'insegnamento "Programmazione" del corso di studi in "Informatica musicale" @ UniMI
Shell
3
star
22

feeding-rice-to-the-snake

An informal proof of Kleene's and Rice's theorems using Python
Jupyter Notebook
3
star
23

sdt

Support material for the PhD class "Systematic Debugging Techniques".
JavaScript
3
star
24

fp-pybg-2019

Python per l'amministrazione di sistema e lo sviluppo web
Jupyter Notebook
3
star
25

tau

A simple Token Authorization Uploader service.
JavaScript
2
star
26

docker-Italiaonline

A talk (and some example code) I delivered @ Italiaonline on July, 16th 2020
HTML
2
star
27

tabellinga

Una semplice webapp (che parla!) per imparare le tabelline!
JavaScript
2
star
28

chiedove-unimi

A command line tool to get "Chi e dove" data from www.unimi.it website.
Python
2
star
29

gpsr

A genetic programming approach to time series forecasting
C
2
star
30

programmazione-e-metodo-scientifico

Jupyter Notebook
1
star
31

hg-sap

A tool to squash and publish a Mercurial repository
Shell
1
star
32

tartaruga

Libreria di supporto all'insegnamento "Programmazione" del corso di studi in "Informatica musicale" @ UniMI
Java
1
star
33

j4im

Libreria di supporto all'insegnamento "Programmazione" del corso di studi in "Informatica musicale" @ UniMI
Java
1
star