]> granicus.if.org Git - graphviz/commitdiff
Correct incorrect test for trivial case
authorEmden Gansner <erg@research.att.com>
Tue, 17 Jan 2012 14:50:17 +0000 (09:50 -0500)
committerEmden Gansner <erg@research.att.com>
Tue, 17 Jan 2012 14:50:17 +0000 (09:50 -0500)
lib/neatogen/constrained_majorization.c

index c8362386fb9dd6f8f68c9239d9a10b71cd91a922..b5802bd1696d04a2693d7d6a543834b4703cfba9 100644 (file)
@@ -132,7 +132,7 @@ int stress_majorization_with_hierarchy(vtx_data * graph,    /* Input graph in spars
            iterations = -1;
            goto finish;
        }
-       if (num_levels <= 1) {
+       if (num_levels < 1) {
            /* no hierarchy found, use faster algorithm */
            return stress_majorization_kD_mkernel(graph, n, nedges_graph,
                                                  d_coords, nodes, dim,