]> granicus.if.org Git - graphviz/commitdiff
fix tred2
authorJohn Ellson <john.ellson@comcast.net>
Sun, 18 Dec 2016 05:04:18 +0000 (00:04 -0500)
committerJohn Ellson <john.ellson@comcast.net>
Sun, 18 Dec 2016 05:04:18 +0000 (00:04 -0500)
cmd/tools/tred2.c

index 4a9a16f8df8856958dd6ed30c3242a3704b4053e..088a48bd0dfc3f9d32467b17740d5411e2a60530 100644 (file)
@@ -92,8 +92,12 @@ int main(int argc, char **argv)
     newIngraph(&ig, Files, gread);
 
     while ((g = nextGraph(&ig)) != 0) {
-       if (agisdirected(g))
+       if (agisdirected(g)) {
+            aginit(g, AGNODE, "info", sizeof(Agnodeinfo_t), TRUE);
            gvToolTred(g);
+            agwrite(g, stdout);
+            fflush(stdout);
+        }
        agclose(g);
     }