From 6401ad8c2cf321fd56f372e333612aa5e1438bc1 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Mon, 2 May 2022 06:18:08 +0300 Subject: [PATCH] emitSearchGraph: show weights of search graph in labels Before this patch using `weight` as `len` contradicted predefined coordinates and changed layout. --- lib/ortho/ortho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index 025ef2629..9185f8604 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -1528,7 +1528,7 @@ emitSearchGraph (FILE* fp, sgraph* sg) } for (i = 0; i < sg->nedges; i++) { ep = sg->edges+i; - fprintf (fp, " %d -- %d[len=\"%f\"]\n", ep->v1, ep->v2, ep->weight); + fprintf (fp, " %d -- %d[label=\"%f\"]\n", ep->v1, ep->v2, ep->weight); } fputs ("}\n", fp); } -- 2.40.0