FILE* and char** versons.
dot.demo/dot
dot.demo/simple
doxygen/*
+graphviz-*/*
graphviz-*.tar.gz
graphviz.spec
lib/agraph/grammar.c
tclpkg/gv/SWIGTYPE_p_Agnode_t.java
tclpkg/gv/SWIGTYPE_p_Agraph_t.java
tclpkg/gv/SWIGTYPE_p_Agsym_t.java
+tclpkg/gv/SWIGTYPE_p_FILE.java
tclpkg/gv/gv.java
tclpkg/gv/gv.php
tclpkg/gv/gv.pm
err = gvLayout(gvc, g, engine);
}
-void writegraph(Agraph_t *g, char *filename, char *format)
+void render(Agraph_t *g, char *format, char *filename)
{
int err;
err = gvRenderFilename(gvc, g, format, filename);
}
+
+void render(Agraph_t *g, char *format, FILE *f)
+{
+ int err;
+
+ err = gvRender(gvc, g, format, f);
+}
extern void layout(Agraph_t *g, char *engine);
-extern void writegraph(Agraph_t *g, char *filename, char *format);
+extern void render(Agraph_t *g, char *format, char *filename);
+extern void render(Agraph_t *g, char *format, FILE *f);
g = gv.readgraph("hello.dot");
gv.layout(g,"dot");
- gv.writegraph(g,"hello.png","png");
+ gv.render(g,"png", "hello.png");
gv.rm(g);
}
}
g = gv.readgraph("hello.dot");
gv.layout(g,"dot");
- gv.writegraph(g,"hello.png","png");
+ gv.render(g,"png","hello.png");
gv.rm(g);
}
}
#
#$g = gv::readgraph "hello.dot";
#gv::layout($g, "dot");
-#gv::writegraph($g, "hello.png", "png");
+#gv::render($g, "png", "hello.png");
#gv::rm $g;
$g = gv::readgraph "hello.dot";
gv::layout($g, "dot");
-gv::writegraph($g, "hello.png", "png");
+gv::render($g, "png", "hello.png");
gv::rm $g;
g = gv.readgraph("hello.dot")
gv.layout(g, "dot")
-gv.writegraph(g, "hello.png", "png")
+gv.render(g, "png", "hello.png")
gv.rm(g)
g = Gv.readgraph("hello.dot")
Gv.layout(g, "dot")
-Gv.writegraph(g, "hello.png", "png")
+Gv.render(g, "png", "hello.png")
Gv.rm(g)
puts " [gv::nameof $a] [gv::set $n $a]"
}
}
+for {set n [gv::firstnode $g]} {[gv::ok $n]} {set n [gv::nextnode $g $n]} {
+ for {set e [gv::firstout $n]} {[gv::ok $e]} {set e [gv::nextout $n $e]} {
+ puts "[gv::nameof $n] -> [gv::nameof [gv::headof $e]]"
+ for {set a [gv::firstattr $e]} {[gv::ok $a]} {set a [gv::nextattr $e $a]} {
+ puts " [gv::nameof $a] [gv::set $e $a]"
+ }
+ }
+}
+
gv::layout $g dot
-gv::writegraph $g hello.png png
+gv::render $g png hello.png