Do not print the resulting graphs. Only the statistics are
important.
.TP
+.B \-S
+Just print the resulting graphs. No statistics are printed.
+.TP
.B \-v
Generate additional statistics. In particular,
.B sccmap
int wantDegenerateComp;
int Silent;
+int StatsOnly;
int Verbose;
char *CmdName;
char **Files;
st->N_nodes_in_nontriv_SCC++;
} while (t != n);
nodeInduce(subg, map);
- if (!Silent)
+ if (!StatsOnly)
agwrite(subg, stdout);
}
}
if (getval(n) == 0)
visit(n, map, &stack, &state);
freeStack(&stack);
- if (!Silent)
+ if (!StatsOnly)
agwrite(map, stdout);
agclose(map);
agnnodes(G), agnedges(G), nc, state.Comp,
state.N_nodes_in_nontriv_SCC / (double) agnnodes(G),
Maxdegree, nontree_frac);
- else
+ else if (!Silent)
fprintf(stderr, "%d nodes, %d edges, %d strong components\n",
agnnodes(G), agnedges(G), state.Comp);
}
static char *useString = "Usage: %s [-sdv?] <files>\n\
- -s - silent\n\
+ -s - only produce statistics\n\
+ -S - silent\n\
-d - allow degenerate components\n\
-v - verbose\n\
-? - print usage\n\
int c;
CmdName = argv[0];
- while ((c = getopt(argc, argv, ":sdv?")) != EOF) {
+ while ((c = getopt(argc, argv, ":sdvS?")) != EOF) {
switch (c) {
case 's':
- Silent = 1;
+ StatsOnly = 1;
break;
case 'd':
wantDegenerateComp = 1;
case 'v':
Verbose = 1;
break;
+ case 'S':
+ Verbose = 0;
+ Silent = 1;
+ break;
case '?':
if (optopt == '?')
usage(0);