# Animate a graphviz graph

I'm exploring some graph algorithms, and would like to animate the graph change over time (e.g. when adding a heap node or balancing a tree).

Is there a nice way to animate a sequence of graphviz graphs?

-
Yes and No. You will have to do something like this. Better use Ubigraph as @Anthony suggested. – Pratik Deoghare Jun 22 '11 at 11:06
There have already been a number of questions about graph visualisation already asked, such as cstheory.stackexchange.com/q/2257/77, so why not look at them. – Dave Clarke Jun 22 '11 at 11:25
A simple approach might be the following: First construct a graph that contains all nodes that existed at some point during the lifetime of the dynamic graph. Use graphviz (or any other tool) to find a nice layout of the graph. Then to animate it, it is sufficient to simply hide/reveal some parts of the graph (e.g., change colour attributes). With a little bit of hacking, it should be fairly easy to automate. – Jukka Suomela Jun 23 '11 at 11:08
I'm voting to close as off-topic given this question asks about visualizing graphs made with particular software. This seems quite unrelated to TCS. – Lev Reyzin Jun 23 '11 at 13:35