sbromberger / MetaGraphs.jl

I never metagraph I didn't like.
Other
94 stars 24 forks source link

How to update vertex / node color in a loop #93

Open imakubex opened 4 years ago

imakubex commented 4 years ago

New user here. I was wondering how we can update the vertex / node color in a loop and display the updated graph in the same loop as exampled below (the example is for Mathematica)

image

Couldn't find explicit documentation on this in LightGraphs or MetaGraphs. Appreciate any help.

sbromberger commented 4 years ago

This is probably a better question for GraphPlot, but I think the strategy would be to derive nodefillc from some vertex property in MetaGraphs, and then replot each time it changes.

If you're looking for an animated GIF, that's a different story and one I'm not able to help with :)