Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

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

Open
imakubex opened this issue Jan 7, 2020 · 1 comment
Open

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

imakubex opened this issue Jan 7, 2020 · 1 comment

Comments

@imakubex
Copy link

imakubex commented Jan 7, 2020

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
Copy link
Owner

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants