pgraph: graphviz: Update our graphviz library

This makes things a bit easier to use. Especially when building fancy
graphs.
This commit is contained in:
James Shubin
2023-08-08 22:18:34 -04:00
parent b134c4b778
commit 170fb64bfc
4 changed files with 196 additions and 61 deletions

View File

@@ -3573,7 +3573,7 @@ func (obj *StmtProg) SetScope(scope *interfaces.Scope) error {
// debugging visualizations
if obj.data.Debug && orderingGraphSingleton {
obj.data.Logf("running graphviz for ordering graph...")
if err := orderingGraph.ExecGraphviz("dot", "/tmp/graphviz-ordering.dot", ""); err != nil {
if err := orderingGraph.ExecGraphviz("/tmp/graphviz-ordering.dot"); err != nil {
obj.data.Logf("graphviz: errored: %+v", err)
}
// Only generate the top-level one, to prevent overwriting this!