~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to tools/src/gc.1

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH GC 1 "21 March 2001"
 
2
.SH NAME
 
3
gc \- count graph components
 
4
.SH SYNOPSIS
 
5
.B gc
 
6
[
 
7
.B \-necCaDUrs?
 
8
]
 
9
 
10
.I files
 
11
]
 
12
.SH DESCRIPTION
 
13
.B gc
 
14
is a graph analogue to 
 
15
.B wc 
 
16
in that it prints to standard output 
 
17
the number of nodes, edges, connected components or clusters contained
 
18
in the input files.
 
19
It also prints a total count for
 
20
all graphs if more than one graph is given.
 
21
.SH OPTIONS
 
22
The following options are supported:
 
23
.TP
 
24
.B \-n
 
25
Count nodes.
 
26
.TP
 
27
.B \-e
 
28
Count edges.
 
29
.TP
 
30
.B \-c
 
31
Count connected components.
 
32
.TP
 
33
.B \-C
 
34
Count clusters. By definition, a cluster is a graph or
 
35
subgraph whose name begins with "cluster".
 
36
.TP
 
37
.B \-a
 
38
Count all. Equivalent to
 
39
.B \-encC
 
40
.TP
 
41
.B \-r
 
42
Recursively analyze subgraphs.
 
43
.TP
 
44
.B \-s
 
45
Print no output. Only exit value is important.
 
46
.TP
 
47
.B \-D
 
48
Only analyze directed graphs.
 
49
.TP
 
50
.B \-U
 
51
Only analyze undirected graphs.
 
52
.TP
 
53
.B \-?
 
54
Print usage information.
 
55
.LP
 
56
By default, 
 
57
.I gc
 
58
returns the number of nodes and edges.
 
59
.SH OPERANDS
 
60
The following operand is supported:
 
61
.TP 8
 
62
.I files
 
63
Names of files containing 1 or more graphs in dot format.
 
64
If no
 
65
.I files
 
66
operand is specified,
 
67
the standard input will be used.
 
68
.SH "EXIT STATUS"
 
69
The following exit values are returned:
 
70
.TP 4
 
71
.B 0
 
72
Successful completion.
 
73
.TP
 
74
.B 1
 
75
The
 
76
.B \-U
 
77
or
 
78
.B \-E
 
79
option was used, and a graph of the wrong type was encountered.
 
80
.SH AUTHOR
 
81
Emden R. Gansner <erg@research.att.com>
 
82
.SH "SEE ALSO"
 
83
wc(1), acyclic(1), gpr(1), ccomps(1), sccmap(1), tred(1), libgraph(3)