From: Emden Gansner Date: Thu, 7 Jun 2012 21:23:11 +0000 (-0400) Subject: Finish graph name feature in gvgen X-Git-Tag: LAST_LIBGRAPH~32^2~404 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=523d9d0778ae88c61ee2b1ffc136ce7a345bc2ea;p=graphviz Finish graph name feature in gvgen --- diff --git a/cmd/tools/gvgen.c b/cmd/tools/gvgen.c index 08843424d..fcc93efbb 100644 --- a/cmd/tools/gvgen.c +++ b/cmd/tools/gvgen.c @@ -469,11 +469,11 @@ int main(int argc, char *argv[]) opts.cnt = 1; graphType = init(argc, argv, &opts); if (opts.directed) { - fprintf(opts.outfile, "digraph {\n"); + fprintf(opts.outfile, "digraph %s{\n", opts.name); ef = dirfn; } else { - fprintf(opts.outfile, "graph {\n"); + fprintf(opts.outfile, "graph %s{\n", opts.name); ef = undirfn; }