From: erg Date: Thu, 27 Jul 2006 02:17:23 +0000 (+0000) Subject: Handle special case of one node subgraphs X-Git-Tag: LAST_LIBGRAPH~32^2~6044 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f025ec47f5129710564c208d62df6c0db3f98e3;p=graphviz Handle special case of one node subgraphs --- diff --git a/lib/neatogen/stress.c b/lib/neatogen/stress.c index 8c0db5e8e..c0feeff6e 100644 --- a/lib/neatogen/stress.c +++ b/lib/neatogen/stress.c @@ -1552,7 +1552,7 @@ int stress_majorization_kD_mkernel(vtx_data * graph, /* Input graph in sparse re ** Layout initialization ** **************************/ - if (smart_ini) { + if (smart_ini && (n > 1)) { havePinned = 0; /* optimize layout quickly within subspace */ /* perform at most 50 iterations within 30-D subspace to @@ -1583,6 +1583,7 @@ int stress_majorization_kD_mkernel(vtx_data * graph, /* Input graph in sparse re } else { havePinned = initLayout(graph, n, dim, d_coords); } + if (Verbose) fprintf(stderr, ": %.2f sec", elapsed_sec()); if (n == 1) return 0; if (Verbose) {