Graphviz: Putting a Caption on a Node In Addition to a Label

Solution 1:

To place captions outside the node, you may use xlabel:

digraph g {
    forcelabels=true;
    a [label="Birth of George Washington", xlabel="See also: American Revolution"];
    b [label="Main label", xlabel="Additional caption"];
    a-> b;
}

forcelabels=true makes sure no xlabel is omitted.

xlabel for nodes example


A second option is to use HTML-like labels:

digraph g {
    a[label=<Birth of George Washington<BR />
        <FONT POINT-SIZE="10">See also: American Revolution</FONT>>];
}

html like labels example