在graphviz中从节点到边缘绘制边缘 [英] draw edge from node to edge in graphviz
本文介绍了在graphviz中从节点到边缘绘制边缘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在graphviz中从节点到现有Edge的中心绘制一条Edge?我想复制这种在化学或生物网络中常见的反应图.
Is it possible to draw an edge from a Node to the center of an existing Edge in graphviz? I would like to duplicate this type of reaction diagram, common in chemical or biological networks.
谢谢!
-彼得
推荐答案
Yes, you can use invisible nodes, like in this example for instance.
然后为A和B创建子图,其中
Then play with creating subgraphs for A and B where
rank=same
,然后是边缘
constraint=false
用于从C到不可见节点的连接.这会将前两个放在C之上.
for the connection from C to the invisible node. This will put the first two above C.
这篇关于在graphviz中从节点到边缘绘制边缘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文