Add animation support to the graph drawing