0
我正在繪製大量節點的大圖,這些節點呈現在點dot -Tsvg graph.gv -o graph.svg
中。 爲了保持概覽我「明確」地定義了我在圖的開頭使用的所有節點。強制顯式創建節點(點,graphviz)
現在我正在尋找一種方法來確保只有那些「顯式」定義的節點被使用,並且我沒有在邊界定義(例如節點名稱中的拼寫錯誤)上「隱式」地創建節點。
以下圖形的渲染不應起作用,或者在渲染使用「隱式」節點時發出警告。
graph main_graph {
// explicit node definition
node1[style=filled, color=grey];
node2[style=filled, color=grey];
node3[style=filled, color=grey];
subgraph graph1 {
edge [color=red,penwidth=2]
node0 -- node2; //node0 implicitly defined
}
subgraph graph2 {
edge [color="blue",penwidth=2]
node2 -- node3;
node1 -- node3;
}
}
看起來像一個很好的解決方法,我會保持打開週末s檢查其他r的想法,然後接受最好的答案。 – RonaldFindling