Daniel@0: .TH LIBGVC 3 Daniel@0: .SH NAME Daniel@0: \fBlibgvc\fR \- Graphviz context library Daniel@0: .SH SYNOPSIS Daniel@0: .ta .75i 1.5i 2.25i 3i 3.75i 4.5i 5.25i 6i Daniel@0: .PP Daniel@0: .nf Daniel@0: \f5 Daniel@0: #include Daniel@0: Daniel@0: /* set up a graphviz context */ Daniel@0: extern GVC_t *gvNEWcontext(char **info, char *user); Daniel@0: extern char *gvUsername(void); Daniel@0: Daniel@0: /* set up a graphviz context \(hy alternative */ Daniel@0: /* (wraps the above two functions using info built into libgvc) */ Daniel@0: extern GVC_t *gvContext(void); Daniel@0: Daniel@0: /* parse command line args \(hy minimally argv[0] sets layout engine */ Daniel@0: extern int gvParseArgs(GVC_t *gvc, int argc, char **argv); Daniel@0: extern graph_t *gvNextInputGraph(GVC_t *gvc); Daniel@0: Daniel@0: /* Compute a layout using a specified engine */ Daniel@0: extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine); Daniel@0: Daniel@0: /* Compute a layout using layout engine from command line args */ Daniel@0: extern int gvLayoutJobs(GVC_t *gvc, graph_t *g); Daniel@0: Daniel@0: /* Render layout into string attributes of the graph */ Daniel@0: extern void attach_attrs(graph_t *g); Daniel@0: Daniel@0: /* Parse an html string */ Daniel@0: extern char *agstrdup_html(char *s); Daniel@0: extern int aghtmlstr(char *s); Daniel@0: Daniel@0: /* Render layout in a specified format to an open FILE */ Daniel@0: extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out); Daniel@0: Daniel@0: /* Render layout in a specified format to an open FILE */ Daniel@0: extern int gvRenderFilename(GVC_t *gvc, graph_t *g, char *format, char *filename); Daniel@0: Daniel@0: /* Render layout according to \-T and \-o options found by gvParseArgs */ Daniel@0: extern int gvRenderJobs(GVC_t *gvc, graph_t *g); Daniel@0: Daniel@0: /* Clean up layout data structures \(hy layouts are not nestable (yet) */ Daniel@0: extern int gvFreeLayout(GVC_t *gvc, graph_t *g); Daniel@0: Daniel@0: /* Clean up graphviz context */ Daniel@0: extern int gvFreeContext(GVC_t *gvc); Daniel@0: Daniel@0: \fP Daniel@0: .fi Daniel@0: .SH DESCRIPTION Daniel@0: \fIlibgvc\fP provides a context for applications wishing to manipulate Daniel@0: and render graphs. It provides a command line parsing, common rendering code, Daniel@0: and a plugin mechanism for renderers. Daniel@0: Daniel@0: .SH SEE ALSO Daniel@0: .BR dot (1), Daniel@0: .BR neato (1), Daniel@0: .BR libcdt (3) Daniel@0: .BR libgraph (3) Daniel@0: .br Daniel@0: Daniel@0: .SH AUTHOR Daniel@0: John Ellson (ellson@research.att.com), AT&T