问题
I need help with formatting a dot graph. To simplify my question, I have a dot code here which I run through a dot tool:
digraph G
{
TestNode [label="Test Node", shape="egg" style="filled" color="yellow"]
}
results in this:

I want to have a black outline to this node. How can I do that?
回答1:
Using fillcolor
together with color
does achieve what you're after:
TestNode [label="Test Node", shape="egg", style="filled", color="black", fillcolor="yellow"]

From the documentation:
Color used to fill the background of a node or cluster assuming style=filled. If fillcolor is not defined, color is used.
来源:https://stackoverflow.com/questions/7168549/dot-how-to-decorate-graph-nodes-with-black-outline-while-filled-with-another-co