I have the following graph.
In[622]:= InputForm[g1]
Out[622]//InputForm=
Graph[{1, 2, 3, 4, 5, 6}, {UndirectedEdge[1, 2],
UndirectedEdge[2, 3], UndirectedEdge[3, 4],
UndirectedEdge[4, 5], UndirectedEdge[5, 6],
UndirectedEdge[6, 1]}, {VertexStyle -> {2 -> RGBColor[0, 1, 0], 1 -> RGBColor[0, 0, 1],
5 -> RGBColor[0, 1, 0], 6 -> RGBColor[1, 0, 0],
4 -> RGBColor[0, 0, 1], 3 -> RGBColor[1, 0, 0]}}]
Is there a clean way to extract the VertexStyle replacement rule list? I found documentation for how to set properties, and I have seeen how one might extract on a per-vertex (or per-edge) basis with PropertyValue. But I’ve not found how to extract them as a whole.
Danny