2
如何創建下面的圖表與graphviz的C語言庫:Graphviz的節點排名編程
digraph G {
{rank=same; n1, n2}
n1 -> n2 -> n3;
}
下面的線條都清晰:
g = agopen("G", AGFLAG_DIRECTED);
agnode(g, "n1");
agnode(g, "n2");
agnode(g, "n3");
agedge(g, "n1", "n2");
agedge(g, "n2", "n3");
如何排名n1和n2?