Vertex coloring

How can I use custom colors for some vertices or a global color for all vertices? I have wrote

digraph {
1 [label=“memcpy”, fillcolor=red]
1->2

}

But it seems that it doesn’t working.

I think you need style=filled

http://graphviz.org/doc/info/attrs.html#d:fillcolor says fillcolor is “Color used to fill the background of a node or cluster assuming style=filled, or a filled arrowhead.”
digraph {
1 [label=“memcpy” fillcolor=red style=filled];
1->2;
}

works for me

1 Like