43static char *
useString =
"Usage: %s [-vr?] <files>\n\
44 -o FILE - redirect output (default to stdout)\n\
45 -v - verbose (to stderr)\n\
46 -r - print removed edges to stderr\n\
48If no files are specified, stdin is used\n";
61 while ((c = getopt(argc, argv,
"o:vr?")) != -1) {
64 (void)fclose(
opts->out);
65 opts->out = fopen(optarg,
"w");
67 fprintf(stderr,
"cannot open %s for writing\n",
76 opts->PrintRemovedEdges =
true;
79 if (optopt ==
'\0' || optopt ==
'?')
82 fprintf(stderr,
"%s: option -%c unrecognized\n",
98int main(
int argc,
char **argv)
abstract graph C library, Cgraph API
static NORETURN void graphviz_exit(int status)
void graphviz_tred(Agraph_t *g, const graphviz_tred_options_t *opts)
programmatic access to tred - transitive reduction
int agisdirected(Agraph_t *g)
int agclose(Agraph_t *g)
deletes a graph, freeing its associated storage
static const char * usage
Agraph_t * nextGraph(ingraph_state *sp)
ingraph_state * newIngraph(ingraph_state *sp, char **files)
supports user-supplied data
options for passing to graphviz_tred