边缘通过Graphviz指向边缘

时间:2018-08-25 05:59:35

标签: graph-theory graphviz point

我想画一个这样的图。

enter image description here

但是我唯一可以绘制的图是:

enter image description here

如何在GraphViz中强制边缘指向另一个边缘的中心?

到目前为止,这是我的代码:

digraph {
  graph [rankdir = LR]

  node [shape=box]
  X;M;Y;M2
  d2 [shape=point,width=0.01,height=0.001];

  X->M M->d2[dir=none] d2->Y X->Y
  M2->d2
  {
    rank=same
    M2,d2
  }

}

我将不胜感激。

0 个答案:

没有答案