From: erg Date: Fri, 16 Nov 2007 22:55:03 +0000 (+0000) Subject: Remove unnecessary termination test for mode=KK X-Git-Tag: LAST_LIBGRAPH~32^2~5015 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63c9cb5ad26cfce1a2620eb05ad356b38ca20835;p=graphviz Remove unnecessary termination test for mode=KK --- diff --git a/lib/neatogen/stuff.c b/lib/neatogen/stuff.c index 33f41140b..1c5c1b70e 100644 --- a/lib/neatogen/stuff.c +++ b/lib/neatogen/stuff.c @@ -514,8 +514,10 @@ node_t *choose_node(graph_t * G, int nG) double m, max; node_t *choice, *np; static int cnt = 0; +#if 0 double e; static double save_e = MAXDOUBLE; +#endif cnt++; if (GD_move(G) >= MaxIter) @@ -550,11 +552,12 @@ node_t *choose_node(graph_t * G, int nG) if (cnt % 1000 == 0) fprintf(stderr, "\n"); } +#if 0 e = total_e(G, nG); if (fabs((e - save_e) / save_e) < 1e-5) { choice = NULL; - fprintf(stderr, " energy tolerance\n"); } +#endif } return choice; }