Search code examples
pythonanimationgraphgraphviz

How to efficiently animate a Graphviz graph?


I would like to animate a Graphviz generated graph, changing the node labels and the node and edge colors.

I was creating the graphs using this Python interface for Graphviz. The only way to do that seems to be to create every image independently (although the changes between frames would be very small) and join all the images into an animation, as explained here.

Is there a more efficient way to create the animation, avoiding the creation of all these images independently?


Solution

  • There is a python package (GraphvizAnim) to do so. Being in alpha only, but non the less looking quite decent.