From: Emden R. Gansner Date: Wed, 19 Mar 2014 14:50:21 +0000 (-0400) Subject: Slight change to logic and comment. X-Git-Tag: 2.38.0~21^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7351b739fb7e87dc86020ad74fa6f011d896db95;p=graphviz Slight change to logic and comment. --- diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index cbf2d3aff..9ee9cf5d1 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -714,12 +714,12 @@ splineEdges(graph_t * g, int (*edgefn) (graph_t *, expand_t*, int), map = dtopen(&edgeItemDisc, Dtoset); for (n = agfstnode(g); n; n = agnxtnode(g, n)) { for (e = agfstout(g, n); e; e = agnxtout(g, e)) { - if (!(Nop > 1 && ED_spl(e))) { - /* with nop > 1 (use given edges) - * and a given edge, no edges are created - * so other edges being equivalent to this - * also wouldn't be created + if ((Nop > 1 && ED_spl(e))) { + /* If Nop > 1 (use given edges) and e has a spline, it + * should have its own equivalence class. */ + ED_count(e)++; + } else { edge_t *leader = equivEdge(map, e); if (leader != e) { fprintf(stderr, "leader != e\n"); @@ -727,8 +727,6 @@ splineEdges(graph_t * g, int (*edgefn) (graph_t *, expand_t*, int), ED_to_virt(e) = ED_to_virt(leader); ED_to_virt(leader) = e; } - } else { - ED_count(e)++; } } }