From 9fbd0398a46ba434c7363e512ace5ca5990f6b3d Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Wed, 24 Aug 2011 15:22:41 -0400 Subject: [PATCH] Make test part of dot.c work with cgraph --- cmd/dot/dot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/dot/dot.c b/cmd/dot/dot.c index c6b38d2ee..464a9731c 100644 --- a/cmd/dot/dot.c +++ b/cmd/dot/dot.c @@ -167,8 +167,13 @@ static graph_t *create_test_graph(void) } } +#ifndef WITH_CGRAPH sg = agsubg (g, "cluster1"); aginsert (sg, node[0]); +#else /* WITH_CGRAPH */ + sg = agsubg (g, "cluster1", 1); + agsubnode (sg, node[0], 1); +#endif /* WITH_CGRAPH */ return g; } -- 2.40.0