Mercurial > hg > camir-aes2014
comparison toolboxes/graph_visualisation/share/man/man1/ccomps.1 @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 .TH CCOMPS 1 "27 August 2008" | |
2 .SH NAME | |
3 ccomps \- connected components filter for graphs | |
4 .SH SYNOPSIS | |
5 .B ccomps | |
6 [ | |
7 .B \-sxvnzC? | |
8 ] | |
9 [ | |
10 .BI -X [#]v | |
11 ] | |
12 [ | |
13 .BI -o outfile | |
14 ] | |
15 [ | |
16 .I files | |
17 ] | |
18 .SH DESCRIPTION | |
19 .B ccomps | |
20 decomposes graphs into their connected components, | |
21 printing the components to standard output. | |
22 .SH OPTIONS | |
23 The following options are supported: | |
24 .TP | |
25 .B \-s | |
26 No output graph is printed. The return value can be used to | |
27 check if the graph is connected or not. | |
28 .TP | |
29 .B \-x | |
30 Only the connected components are printed, as separate graphs. | |
31 .TP | |
32 .B \-v | |
33 Counts of nodes, edges and connected components are printed. | |
34 .TP | |
35 .B \-z | |
36 Sort components by size, with the largest first. This is only | |
37 effective if either \fB-x\fP or \fB-X#v\fP is present. | |
38 Thus, \fB-zX#0\fP will cause the largest component to be printed. | |
39 .TP | |
40 .B \-C | |
41 Use clusters in computing components in addition to normal edge | |
42 connectivity. In essence, this gives the connected components of the | |
43 derived graph in which nodes top-level clusters and nodes in the | |
44 original graph. This maintains all subgraph structure within a | |
45 component, even if a subgraph does not contain any nodes. | |
46 .TP | |
47 .B \-n | |
48 Do not project subgraph structure. Normally, if | |
49 .B ccomps | |
50 produces components as graphs distinct from the input graph, it will | |
51 define subgraphs which are projections of subgraphs of the input graph | |
52 onto the component. (If the projection is empty, no subgraph is produced.) | |
53 If this flag is set, the component contains only the relevant nodes and | |
54 edges. | |
55 .TP | |
56 .BI \-X " node_name" | |
57 Prints only the component containing the node \fInode_name\fP, | |
58 if any. | |
59 .TP | |
60 .BI \-X# " index" | |
61 Prints only component number \fIindex\fP, if any, starting at 0. | |
62 .TP | |
63 .BI \-o " outfile" | |
64 If specified, each graph will be written to a different file | |
65 with the names derived from \fIoutfile\fP. In particular, | |
66 if both \fB-o\fP and \fB-x\fP flags are used, then each connected | |
67 component is written to a different file. If \fIoutfile\fP does | |
68 not have a suffix, the first file will have the name \fIoutfile\fP; | |
69 then next \fIoutfile_1\fP, then next \fIoutfile_2\fP, and so on. | |
70 If \fIoutfile\fP has a suffix, i.e., has the form \fIbase.sfx\fP, | |
71 then the files will be named \fIbase.sfx\fP, \fIbase_1.sfx\fP, | |
72 \fIbase_2.sfx\fP, etc. | |
73 .LP | |
74 By default, each input graph is printed, with each connected | |
75 component given as a subgraph whose name is a concatenation of | |
76 the name of the input graph, the string "_component_" and the | |
77 number of the component. | |
78 .SH OPERANDS | |
79 The following operand is supported: | |
80 .TP 8 | |
81 .I files | |
82 Names of files containing 1 or more graphs in dot format. | |
83 If no | |
84 .I files | |
85 operand is specified, | |
86 the standard input will be used. | |
87 .SH RETURN CODES | |
88 Unless used to extract a single connected component, | |
89 .B ccomps | |
90 returns | |
91 .B 0 | |
92 if all the input graphs are connected; and | |
93 non-zero if any graph has multiple components, or any error occurred. | |
94 If just extracting a single component, | |
95 .B ccomps | |
96 returns | |
97 .B 0 | |
98 on success and non-zero if an error occurred. | |
99 .SH "BUGS" | |
100 It is possible, though unlikely, that the names used for connected | |
101 components and their subgraphs may conflict with existing subgraph names. | |
102 .SH AUTHORS | |
103 Stephen C. North <north@research.att.com> | |
104 .br | |
105 Emden R. Gansner <erg@research.att.com> | |
106 .SH "SEE ALSO" | |
107 gc(1), dot(1), gvpr(1), gvcolor(1), acyclic(1), sccmap(1), tred(1), libgraph(3) |