I have a network that looks like the following:
> get.vertex.attribute(g)
$name
[1] "T1" "A1" "A2" "A3" "A3"
$color
[1] NA "#D53E4F" "#D53E4F" "#F6E68E" "#EE6445"
$weight
[1] NA 34 15 11 6
I am hoping to replace the NA value in V(g)$color with black, and the V(g)$weight with a number. Would anyone know how to set the vertex value for a particular vertex, especially one that has an NA vertex attribute?