How to draw 2 labels on edge in a .dot file?

不打扰是莪最后的温柔 提交于 2019-12-10 04:10:14

问题


I have for now a dot file generating the following graph

   label

[A] -----------> [b]

and I want to change it to something like:

[A] label 1 ------> label 2 [b]

Is there any way to express that in my .dot file ? I am not sure this is possible.


回答1:


An edge can have a taillabel and a headlabel attribute:

a -> b[headlabel="head", taillabel="tail"];

Those labels are displayed near the tail and the head of the edge.



来源:https://stackoverflow.com/questions/20149082/how-to-draw-2-labels-on-edge-in-a-dot-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!