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)) {
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 *);
}
}
-static void
-scan_ranks(graph_t * g)
+void
+dot_scan_ranks(graph_t * g)
{
node_t *n, *leader = NULL;
GD_minrank(g) = MAXSHORT;
dot_rank(subg);
cluster_leader(subg);
} else
- scan_ranks(subg);
+ dot_scan_ranks(subg);
}
/* Execute union commands for "same rank" subgraphs and clusters. */