1LIBGVC(3)                  Library Functions Manual                  LIBGVC(3)
2
3
4

NAME

6       libgvc - Graphviz context library
7

SYNOPSIS

9       #include <graphviz/gvc.h>
10
11       /* set up a graphviz context */
12       extern GVC_t *gvNEWcontext(char **info, char *user);
13       extern char *gvUsername(void);
14
15       /*  set up a graphviz context ‐ alternative */
16       /*     (wraps the above two functions using info built into libgvc) */
17       extern GVC_t *gvContext(void);
18
19       /* parse command line args ‐ minimally argv[0] sets layout engine */
20       extern int gvParseArgs(GVC_t *gvc, int argc, char **argv);
21       extern graph_t *gvNextInputGraph(GVC_t *gvc);
22
23       /* Compute a layout using a specified engine */
24       extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine);
25
26       /* Compute a layout using layout engine from command line args */
27       extern int gvLayoutJobs(GVC_t *gvc, graph_t *g);
28
29       /* Render layout into string attributes of the graph */
30       extern void attach_attrs(graph_t *g);
31
32       /* Parse an html string */
33       extern char *agstrdup_html(char *s);
34       extern int aghtmlstr(char *s);
35
36       /* Render layout in a specified format to an open FILE */
37       extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out);
38
39       /* Render layout in a specified format to an open FILE */
40       extern int gvRenderFilename(GVC_t *gvc, graph_t *g, char *format, char *filename);
41
42       /* Render layout according to -T and -o options found by gvParseArgs */
43       extern int gvRenderJobs(GVC_t *gvc, graph_t *g);
44
45       /* Clean up layout data structures ‐ layouts are not nestable (yet) */
46       extern int gvFreeLayout(GVC_t *gvc, graph_t *g);
47
48       /* Clean up graphviz context */
49       extern int gvFreeContext(GVC_t *gvc);
50
51       /* Inquire about available plugins */
52       /* See comment in gvc.h            */
53       extern char** gvPluginList(GVC_t *gvc, char* kind, int* cnt, char*);
54
55

DESCRIPTION

57       libgvc  provides  a  context for applications wishing to manipulate and
58       render graphs.  It provides a command line  parsing,  common  rendering
59       code, and a plugin mechanism for renderers.
60
61

SEE ALSO

63       dot(1), neato(1), libcdt(3) libgraph(3)
64
65

AUTHOR

67       John Ellson (ellson@research.att.com), AT&T
68
69
70
71                                                                     LIBGVC(3)
Impressum