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 {
    rankdir=LR; // 从左到右布局
rankdir=LR;
    node [shape=box, style=solid];


    // 定义节点
"5c7" [shape=record; label="{<1>5 | <2>c | <3>7}"]
    A [label="5"];
"5c7:1" -- 变动前
    B [label="C"];
    C [label="7"];
   
    // 排列在一行
    { rank=same; A; B; C }


    // 边注释
    edge [dir=none]; // 取消箭头方向
    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 17:01, 10 January 2025