From: Emden R. Gansner Date: Wed, 26 Mar 2014 17:45:47 +0000 (-0400) Subject: Allow the subset model to use specified edge lengths if available X-Git-Tag: 2.38.0~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e486bc3f04a537f4874578c4e063860e6fb09ba8;p=graphviz Allow the subset model to use specified edge lengths if available --- diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index f2bbb29ec..c0bfdaaf1 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -787,9 +787,8 @@ static vtx_data *makeGraphData(graph_t * g, int nv, int *nedges, int mode, int m /* lengths and weights unused in reweight model */ if (model == MODEL_SUBSET) { haveLen = FALSE; - haveWt = FALSE; - } else { haveLen = agattr(g, AGEDGE, "len", 0) ; + } else { haveWt = (E_weight != 0); } if (mode == MODE_HIER || mode == MODE_IPSEP)