From 3310002ddb45deb0c56190a7a34072366468ea7c Mon Sep 17 00:00:00 2001 From: north Date: Fri, 28 Sep 2007 14:38:43 +0000 Subject: [PATCH] fix bug 1182 --- lib/dotgen/conc.c | 2 +- lib/dotgen/dotprocs.h | 1 + lib/dotgen/rank.c | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/dotgen/conc.c b/lib/dotgen/conc.c index 0a64213fd..8160e4bde 100644 --- a/lib/dotgen/conc.c +++ b/lib/dotgen/conc.c @@ -146,7 +146,7 @@ static void rebuild_vlists(graph_t * g) for (r = GD_minrank(g); r <= GD_maxrank(g); r++) GD_rankleader(g)[r] = NULL; - + dot_scan_ranks(g); for (n = agfstnode(g); n; n = agnxtnode(g, n)) { infuse(g, n); for (e = agfstout(g, n); e; e = agnxtout(g, e)) { diff --git a/lib/dotgen/dotprocs.h b/lib/dotgen/dotprocs.h index d7e0ec7c8..9ad4c4509 100644 --- a/lib/dotgen/dotprocs.h +++ b/lib/dotgen/dotprocs.h @@ -38,6 +38,7 @@ extern "C" { extern void dot_cleanup(graph_t * g); extern void dot_layout(Agraph_t * g); extern void dot_init_node_edge(graph_t * g); + extern void dot_scan_ranks(graph_t * g); extern void expand_cluster(Agraph_t *); extern Agedge_t *fast_edge(Agedge_t *); extern void fast_node(Agraph_t *, Agnode_t *); diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index 8c05f2867..ec4f917d7 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -195,8 +195,8 @@ node_induce(graph_t * par, graph_t * g) } } -static void -scan_ranks(graph_t * g) +void +dot_scan_ranks(graph_t * g) { node_t *n, *leader = NULL; GD_minrank(g) = MAXSHORT; @@ -261,7 +261,7 @@ collapse_cluster(graph_t * g, graph_t * subg) dot_rank(subg); cluster_leader(subg); } else - scan_ranks(subg); + dot_scan_ranks(subg); } /* Execute union commands for "same rank" subgraphs and clusters. */ -- 2.40.0