How to read diff result: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<graphviz>
<graphviz>
graph diff {
graph diff {
node [];
    rankdir=LR; // 从左到右布局
    node [shape=box, style=solid];


"5C7" [shape=record; rankdir=LR; label="{<left> 5 | <middle> c | <right> 7}"]
    // 定义节点
    A [label="5"];
    B [label="C"];
    C [label="7"];
   
    // 排列在一行
    { rank=same; A; B; C }


"5C7":left -- 第几行有变动
    // 边注释
"5C7":middle -- 具体变动
    edge [dir=none]; // 取消箭头方向
"5C7":right -- 变动后是第几行
    A -> B [label="变动前" fontsize=12 labeldistance=2];
    B -> C [label="变动情" fontsize=12 labeldistance=2];
    C -> A [label="变动后" fontsize=12 labeldistance=2];
}


}
</graphviz>
</graphviz>

Revision as of 16:59, 10 January 2025

Diagrams error (with dot command): Error: /tmp/diagrams_ina8efe4bf0009.dot: syntax error in line 15 near '->'