1GC(1) General Commands Manual GC(1)
2
3
4
6 gc - count graph components
7
9 gc [ -necCaDUrs? ] [ files ]
10
12 gc is a graph analogue to wc in that it prints to standard output the
13 number of nodes, edges, connected components or clusters contained in
14 the input files. It also prints a total count for all graphs if more
15 than one graph is given.
16
18 The following options are supported:
19
20 -n Count nodes.
21
22 -e Count edges.
23
24 -c Count connected components.
25
26 -C Count clusters. By definition, a cluster is a graph or subgraph
27 whose name begins with "cluster".
28
29 -a Count all. Equivalent to -encC
30
31 -r Recursively analyze subgraphs.
32
33 -s Print no output. Only exit value is important.
34
35 -D Only analyze directed graphs.
36
37 -U Only analyze undirected graphs.
38
39 -? Print usage information.
40
41 By default, gc returns the number of nodes and edges.
42
44 The following operand is supported:
45
46 files Names of files containing 1 or more graphs in dot format. If
47 no files operand is specified, the standard input will be used.
48
50 The following exit values are returned:
51
52 0 Successful completion.
53
54 1 The -U or -E option was used, and a graph of the wrong type was
55 encountered.
56
58 Emden R. Gansner <erg@research.att.com>
59
61 wc(1), acyclic(1), gvpr(1), gvcolor(1), ccomps(1), sccmap(1), tred(1),
62 libgraph(3)
63
64
65
66 21 March 2001 GC(1)