From: Emden Gansner Date: Wed, 24 Aug 2011 19:22:41 +0000 (-0400) Subject: Make test part of dot.c work with cgraph X-Git-Tag: LAST_LIBGRAPH~32^2~674^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fbd0398a46ba434c7363e512ace5ca5990f6b3d;p=graphviz Make test part of dot.c work with cgraph --- 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; }