I'm feeding this simple input script defining record based nodes to dot in order to create a SVG from it (the SVG part actually doesn't matter):
graph mygraph{
node [shape=record, fontsize=10, fontname=Arial];
rankdir=TB;
ranksep=0.5;
rank=max;
splines=true;
overlap=false;
mindist=0.2;
"d1" [style=solid, label="{\N|{<0> 0|<1> 1}}"];
"d2" [style=solid, label="{\N|{<0> 0|<1> 1|<2> 2|<3> 3}}"];
"d1":0 -- "d2":0[color=blue, penwidth=3, tooltip="d1:0 -- d2:0", URL="#"];
}
This yields a graph where ports 0 of d1
and port 0 of d2
are connected by a blue spline:
Fine.
Now I have the need to colorize the ports. For example: port 1 of d2
shall be green and port 2 of d2
shall be orange. Or something.
How do I achieve this?
Edit 1: the solid frame around the nodes is important. I need it solid for some nodes, dashed for others.