From e486bc3f04a537f4874578c4e063860e6fb09ba8 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" <erg@alum.mit.edu> Date: Wed, 26 Mar 2014 13:45:47 -0400 Subject: [PATCH] Allow the subset model to use specified edge lengths if available --- lib/neatogen/neatoinit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.40.0