]> granicus.if.org Git - graphviz/commitdiff
Add new pack functions for setting pack_info, and simplify code in *gen directories.
authorerg <devnull@localhost>
Wed, 13 May 2009 20:59:17 +0000 (20:59 +0000)
committererg <devnull@localhost>
Wed, 13 May 2009 20:59:17 +0000 (20:59 +0000)
Add new packing features: array bounds, column vs. row major, user-based sorting

lib/twopigen/twopiinit.c

index c8ff442e16024ed0cd5cda48efc977d120037b2e..66c978107f38186d14130dd18508b981de20237a 100644 (file)
@@ -93,7 +93,8 @@ void twopi_layout(Agraph_t * g)
            spline_edges(g);
        } else {
            pack_info pinfo;
-           pack_mode pmode = getPackMode(g, l_node);
+           getPackInfo (g, l_node, CL_OFFSET, &pinfo);
+           pinfo.doSplines = 1;
 
            for (i = 0; i < ncc; i++) {
                sg = ccs[i];
@@ -107,10 +108,6 @@ void twopi_layout(Agraph_t * g)
            }
            free(ND_alg(agfstnode(g)));
            spline_edges(g);
-           pinfo.margin = getPack(g, CL_OFFSET, CL_OFFSET);
-           pinfo.doSplines = 1;
-           pinfo.mode = pmode;
-           pinfo.fixed = 0;
            packSubgraphs(ncc, ccs, g, &pinfo);
        }
        for (i = 0; i < ncc; i++) {