| 1 |
.TH GVPACK 1 "27 May 2010" |
| 2 |
.SH NAME |
| 3 |
gvpack \- merge and pack disjoint graphs |
| 4 |
.SH SYNOPSIS |
| 5 |
.B gvpack |
| 6 |
[ |
| 7 |
.B \-nguv? |
| 8 |
] |
| 9 |
[ |
| 10 |
.BI \-m margin |
| 11 |
] |
| 12 |
[ |
| 13 |
.B \-array\fIopts\fP |
| 14 |
] |
| 15 |
[ |
| 16 |
.BI \-o outfile |
| 17 |
] |
| 18 |
[ |
| 19 |
.BI \-s graph_name |
| 20 |
] |
| 21 |
[ |
| 22 |
.BI \-G name\fB=\fPvalue |
| 23 |
] |
| 24 |
[ |
| 25 |
.I files |
| 26 |
] |
| 27 |
.SH DESCRIPTION |
| 28 |
.B gvpack |
| 29 |
reads in a stream of graphs, combines the graphs into a single |
| 30 |
layout, and produces a single graph serving as the union of the |
| 31 |
input graphs. The input graphs must be in dot format, and must have |
| 32 |
all necessary layout information. Acceptable input is produced |
| 33 |
by applying a Graphviz layout program, such as \fBdot\fP or \fBneato\fP, |
| 34 |
with no \fB\-T\fP flag. |
| 35 |
.P |
| 36 |
By default, the packing is done at the cluster level. Thus, parts of |
| 37 |
one graph will not intrude into any top\(hylevel clusters or overlap |
| 38 |
any nodes or edges of another. |
| 39 |
.P |
| 40 |
The output of \fBgvpack\fP can be used to produce concrete output |
| 41 |
by applying \fBneato \-s \-n2\fP with the desired \fB\-T\fP flag. |
| 42 |
.SH OPTIONS |
| 43 |
The following options are supported: |
| 44 |
.TP |
| 45 |
.B \-g |
| 46 |
Combines the graphs at the graph level. This uses more space, but prevents |
| 47 |
parts of one graph from occurring between parts of another. |
| 48 |
.TP |
| 49 |
.BI \-array\fI[_flags][n]\fP |
| 50 |
Combines the graphs at the graph level, placing them in an array. |
| 51 |
By default, the layout is done in row-major order. The number of columns |
| 52 |
used is roughly the square root of the number of graphs. If the optional |
| 53 |
integer \fIn\fP is supplied, this indicates the number of columns to use. |
| 54 |
.TP |
| 55 |
|
| 56 |
If optional flags are supplied, these consist of an underscore followed |
| 57 |
by any of the letters "c", "t", "b", "l", "r", "u" or "i". |
| 58 |
If "c" is supplied, the graphs are packed in column-major order, in which |
| 59 |
case a final integer specifies the number of rows. |
| 60 |
The flags "t", "b", "l", "r" indicate that components are aligned |
| 61 |
along the top, bottom, left or right, respectively. |
| 62 |
By default, the insertion order is determined by sorting the graphs by size, |
| 63 |
largest to smallest. If |
| 64 |
the "u" flag is set, the graphs are sorted based on the non-negative integer |
| 65 |
\fIsortv\fP attribute attached to each graph. |
| 66 |
The "i" flag indicates that no sorting is done, with the graphs inserted in |
| 67 |
input order. |
| 68 |
.TP |
| 69 |
.BI \-G "name\fB=\fPvalue" |
| 70 |
Specifies attributes to be added to the resulting union graph. For |
| 71 |
example, this can be used to specify a graph label. |
| 72 |
.TP |
| 73 |
.BI \-m "margin" |
| 74 |
Packs the graphs allowing a margin of \fIoutput\fP points around |
| 75 |
the parts. |
| 76 |
.TP |
| 77 |
.B \-n |
| 78 |
Combines the graphs at the node level. Clusters are ignored in the packing. |
| 79 |
.TP |
| 80 |
.BI \-o "output" |
| 81 |
Prints output to the file \fIoutput\fP. If not given, \fBgvpack\fP |
| 82 |
uses stdout. |
| 83 |
.TP |
| 84 |
.BI \-s "graph_name" |
| 85 |
Use \fIgraph_name\fP as the name of the root graph. By default, "root" |
| 86 |
is used. |
| 87 |
.TP |
| 88 |
.B \-u |
| 89 |
Don't pack the graphs. Just combine them into a single graph. |
| 90 |
.TP |
| 91 |
.B \-v |
| 92 |
Verbose mode. |
| 93 |
.TP |
| 94 |
.B \-? |
| 95 |
Prints usage information and exit. |
| 96 |
.SH OPERANDS |
| 97 |
The following operand is supported: |
| 98 |
.TP 8 |
| 99 |
.I files |
| 100 |
Names of files containing 1 or more graphs in dot format. |
| 101 |
If no |
| 102 |
.I files |
| 103 |
operand is specified, |
| 104 |
the standard input will be used. |
| 105 |
.SH RETURN CODES |
| 106 |
.B gvpack |
| 107 |
returns |
| 108 |
.B 0 |
| 109 |
if there were no problems, and non\(hyzero otherwise. |
| 110 |
.SH EXAMPLES |
| 111 |
.EX |
| 112 |
ccomps \-x abc.gv | dot | gvpack | neato \-s \-n2 \-Tps |
| 113 |
.EE |
| 114 |
This pipeline decomposes the graph in \fIabc.gv\fP into its |
| 115 |
connected components, lays out each using \fBdot\fP, packs them all together |
| 116 |
again, and produces the final drawing in PostScript. Of course, |
| 117 |
there is nothing to prevent one from using different layouts for |
| 118 |
each component. |
| 119 |
.SH "BUGS" |
| 120 |
All the input graphs must be directed or undirected. |
| 121 |
.P |
| 122 |
An input graph should not have a label, since this will be used in its |
| 123 |
layout. Since \fBgvpack\fP ignores root graph labels, resulting layout |
| 124 |
may contain some extra space. |
| 125 |
.P |
| 126 |
\fBgvpack\fP unsets the bounding box attribute of all non\(hycluster |
| 127 |
subgraphs. |
| 128 |
.SH AUTHORS |
| 129 |
Emden R. Gansner <[email protected]> |
| 130 |
.SH "SEE ALSO" |
| 131 |
gvpr(1), dot(1), neato(1), twopi(1), ccomps(1), libpack(3) |