Making gif out of graphs

Hi,

I’m teaching an undergraduate class in algorithmics and I would like to make some nice visualization of algorithms on graphs. To do so I would like to make gifs out of plots of graphs.
I would very much like to use the @gif macro of Plots.jl but graphs plots are created bu GraphPlot.jl.

Is there any way for me to make it work?

1 Like

I do not know if there is a direct solution, but in principle you can transform any set of images into an annimation. This is discussed in this thread, for example: Plotting a sequence of images as a gif - #6 by yakir12

One simplish option would be to create your graph plots using GitHub - JuliaPlots/GraphRecipes.jl: Graph-related recipes to be used with Plots.jl
instead.
Which does work with Plots.jl