From babd457b87054901d286035495859b54bfceaf04 Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 23 Oct 2008 03:45:23 +0000 Subject: [PATCH] cgraph fixes --- lib/dotgen/rank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index 8bcd1a7a2..a972b69af 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -318,7 +318,7 @@ find_clusters(graph_t * g) mn = me->head; subg = agusergraph(mn); #else /* WITH_CGRAPH */ - for (subg = agfstsubg(subg); subg; subg = agnxtsubg(subg)) { + for (subg = agfstsubg(agroot(g)); subg; subg = agnxtsubg(subg)) { #endif /* WITH_CGRAPH */ if (GD_set_type(subg) == CLUSTER) collapse_cluster(g, subg); @@ -560,7 +560,7 @@ void dot_rank(graph_t * g, aspect_t* asp) class1(g); p = minmax_edges(g); decompose(g, 0); - if (asp && ((g->u.comp.size > 1)||(g->u.n_cluster > 0))) { + if (asp && ((GD_comp(g).size > 1)||(GD_n_cluster(g) > 0))) { asp->badGraph = 1; asp = NULL; } -- 2.40.0