]> granicus.if.org Git - graphviz/commitdiff
Postprocessing assumes edges have Agedgeinfo_t so bind this record.
authorEmden R. Gansner <erg@research.att.com>
Fri, 30 Aug 2013 19:47:33 +0000 (15:47 -0400)
committerEmden R. Gansner <erg@research.att.com>
Fri, 30 Aug 2013 19:47:33 +0000 (15:47 -0400)
lib/patchwork/patchworkinit.c

index 7248d759a8fa363d701727ecf0532e2983ff486d..4191c259a1fe2b48fff6b242baffada3fa95e85f 100644 (file)
@@ -116,6 +116,7 @@ static void patchwork_init_node(node_t * n)
 
 static void patchwork_init_edge(edge_t * e)
 {
+    agbindrec(e, "Agedgeinfo_t", sizeof(Agnodeinfo_t), TRUE);  // edge custom data
     /* common_init_edge(e); */
 }
 
@@ -134,8 +135,7 @@ static void patchwork_init_node_edge(graph_t * g)
        ND_alg(n) = alg + i;
        GD_neato_nlist(g)[i++] = n;
        patchwork_init_node(n);
-    }
-    for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
+
        for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
            patchwork_init_edge(e);
        }