如何让链接连接HTML节点的边框?
graph {
node[shape=plaintext];
Object1[label=<<table><tr><td>Object1</td></tr></table>>];
Object2[label=<<table><tr><td>Object2</td></tr></table>>];
Link[shape="diamond", label="Link"];
Object1 -- Link;
Object2 -- Link;
}
编译:{{1}}
Result:物体边界离链接末端有点太远了。
答案 0 :(得分:0)
找到一个可接受的解决方案,使用引用&#34; port&#34;在TD细胞内:
graph {
node[shape=plaintext];
Object1[label=<<table border="0"><tr><td border="1" port="f1">Object1</td></tr></table>>];
Object2[label=<<table border="0"><tr><td border="1" port="f2">Object2</td></tr></table>>];
Link[shape="diamond", label="Link"];
Object1:f1 -- Link;
Object2:f2 -- Link;
}
(受文档页面https://www.graphviz.org/doc/info/shapes.html末尾附近的示例启发)