39 "Usage: %s [-f?] [-l <M>] [-c <N>] [-o <outfile>] <files>\n\
40 -o <outfile> - put output in <outfile>\n\
41 -f - adjust immediate fanout chains\n\
42 -l <M> - stagger length of leaf edges between [1,<M>]\n\
43 -c <N> - put disconnected nodes in chains of length <N>\n\
57 while ((c = getopt(argc, argv,
":fl:c:o:")) != -1) {
65 opts->MaxMinlen = ival;
70 opts->ChainLimit = ival;
81 fprintf(stderr,
"%s: option -%c unrecognized\n",
cmd,
87 fprintf(stderr,
"%s: missing argument for option -%c\n",
95 if (
opts->Do_fans &&
opts->MaxMinlen < 1)
96 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