How to update vertex / node color in a loop using Metagraphs

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.