12#include "../tools/openFile.h"
40" -C k - generate no more than k clusters (0)\n\
42 -c k - use clustering method k (0)\n\
44 1 : use modularity quality\n\
45 -o <outfile> - output file (stdout)\n\
51 fprintf(stderr,
"Usage: %s <options> graphfile\n",
cmd);
66 while ((c = getopt(argc, argv,
":vC:c:o:?")) != -1) {
69 if (sscanf(optarg,
"%d", &v) == 0 || v < 0) {
75 if (sscanf(optarg,
"%d", &v) == 0 || v < 0) {
87 if (optopt ==
'\0' || optopt ==
'?')
90 fprintf(stderr,
" option -%c unrecognized\n",
113int main(
int argc,
char *argv[])
void initDotIO(Agraph_t *g)
void attached_clustering(Agraph_t *g, int maxcluster, int clustering_scheme)
static const char usestr[]
static void init(int argc, char *argv[], opts_t *opts)
static void clusterGraph(Agraph_t *g, int maxcluster, int clustering_method)
static NORETURN void graphviz_exit(int status)
static int eval(Agraph_t *g, int root)
int agclose(Agraph_t *g)
deletes a graph, freeing its associated storage
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)