指南扩展: 连接线

节点之间的连接通过连接线。下面介绍不同连接线的形状

带箭头的连接线

graph LR
    A-->B

AB

不带箭头的连接线

graph LR
    A---B;
    B-->C;

ABC

带内容不带箭头的连接线

graph LR;
    A--This is the text---B;

or

graph LR;
    A---|This is the text|B;

This is the textAB

带内容带箭头的连接线

graph LR;
    A--This is the text-->B;
    B--This is the text-->C;

or

graph LR;
    A-->|This is the text|B;
    B-->|This is the text|C;

This is the textThis is the textABC