Legend in network graph

The above code generates the picture below, which is exactly what I would expect:

Screen Shot 2021-02-12 at 12.48.52 PM

If you change the node fill color:

r.node_renderer.glyph.fill_color="red"

Then the legend also changes correspondingly:

Screen Shot 2021-02-12 at 12.50.11 PM

which is also exactly what I would expect. You will need to describe what you are trying to accomplish in much more detail.