]> granicus.if.org Git - graphviz/commitdiff
Fix bugs in mode=ipsep diredgeconstraint=hier. Incorrect values for
authorerg <devnull@localhost>
Wed, 29 Apr 2009 00:38:44 +0000 (00:38 +0000)
committererg <devnull@localhost>
Wed, 29 Apr 2009 00:38:44 +0000 (00:38 +0000)
the graph size where being passed to subroutines.

lib/neatogen/quad_prog_vpsc.c

index 46c66f59f51386e31be9ff0477d7dcf7ef851c1c..2609d28d367b33a35971d5be877b85f0283dfe73 100644 (file)
@@ -238,9 +238,9 @@ CMajEnvVPSC *initCMajVPSC(int n, float *packedMat, vtx_data * graph,
        DigColaLevel *levels;
        Variable **vs = e->vs;
        /* e->ndv is the number of dummy variables required, one for each boundary */
-       compute_hierarchy(graph, n, 1e-2, 1e-1, NULL, &ordering, &ls,
+       compute_hierarchy(graph, e->nv, 1e-2, 1e-1, NULL, &ordering, &ls,
                          &e->ndv);
-       levels = assign_digcola_levels(ordering, n, ls, e->ndv);
+       levels = assign_digcola_levels(ordering, e->nv, ls, e->ndv);
        if (Verbose)
            fprintf(stderr, "Found %d DiG-CoLa boundaries\n", e->ndv);
        e->gm =