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

**URL:** https://discourse.julialang.org/t/how-to-update-vertex-node-color-in-a-loop-using-metagraphs/33183
**Category:** New to Julia
**Created:** [January 10, 2020, 6:45am UTC](https://discourse.julialang.org/t/how-to-update-vertex-node-color-in-a-loop-using-metagraphs/33183 "2020-01-10T06:45:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Imran\_Mustafa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imran_mustafa/32/12120_2.png) [@Imran\_Mustafa](https://discourse.julialang.org/u/Imran_Mustafa)
#### Post date: [January 10, 2020, 6:45am UTC](https://discourse.julialang.org/t/how-to-update-vertex-node-color-in-a-loop-using-metagraphs/33183/1 "2020-01-10T06:45:31Z")

</div>

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](https://global.discourse-cdn.com/julialang/original/3X/f/0/f0cc1c3512381bfa622a3999418dfa9751ea6606.png)

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