41 "Usage: %s [-f?] [-l <M>] [-c <N>] [-o <outfile>] <files>\n\
42 -o <outfile> - put output in <outfile>\n\
43 -f - adjust immediate fanout chains\n\
44 -l <M> - stagger length of leaf edges between [1,<M>]\n\
45 -c <N> - put disconnected nodes in chains of length <N>\n\
59 while ((c = getopt(argc, argv,
":fl:c:o:")) != -1) {
67 opts->MaxMinlen = ival;
72 opts->ChainLimit = ival;
83 fprintf(stderr,
"%s: option -%c unrecognized\n",
cmd,
89 fprintf(stderr,
"%s: missing argument for option -%c\n",
97 if (
opts->Do_fans &&
opts->MaxMinlen < 1)
98 fprintf(stderr,
"%s: Warning: -f requires -l flag\n",
cmd);
abstract graph C library, Cgraph API
static NORETURN void graphviz_exit(int status)
void graphviz_unflatten(Agraph_t *g, const graphviz_unflatten_options_t *opts)
int agwrite(Agraph_t *g, void *chan)
Return 0 on success, EOF on failure.
static const char * usage
Agraph_t * nextGraph(ingraph_state *sp)
ingraph_state * newIngraph(ingraph_state *sp, char **files)
supports user-supplied data
static FILE * openFile(const char *argv0, const char *name, const char *mode)
options for passing to graphviz_unflatten