# FreeBSD Manual Pages

GVPACK(1) General Commands Manual GVPACK(1)NAMEgvpack - merge and pack disjoint graphsSYNOPSISgvpack[-nguv?] [-mmargin] [-array[_flags][n]] [-ooutfile] [-sgraph_name] [-Gname=value] [files]DESCRIPTIONgvpackreads in a stream of graphs, combines the graphs into a single layout, and produces a single graph serving as the union of the input graphs. The input graphs must be in dot format, and must have all nec- essary layout information. Acceptable input is produced by applying a Graphviz layout program, such asdotorneato, with no-Tflag. By default, the packing is done at the cluster level. Thus, parts of one graph will not intrude into any top-level clusters or overlap any nodes or edges of another. The output ofgvpackcan be used to produce concrete output by applyingneato-s-n2with the desired-Tflag.OPTIONSThe following options are supported:-gCombines the graphs at the graph level. This uses more space, but prevents parts of one graph from occurring between parts of another.-array[_flags][n]Combines the graphs at the graph level, placing them in an ar- ray. By default, the layout is done in row-major order. The number of columns used is roughly the square root of the number of graphs. If the optional integernis supplied, this indicates the number of columns to use. If optional flags are supplied, these consist of an underscore followed by any of the letters "c", "t", "b", "l", "r", "u" or "i". If "c" is supplied, the graphs are packed in column-major order, in which case a final integer specifies the number of rows. The flags "t", "b", "l", "r" indicate that components are aligned along the top, bottom, left or right, respectively. By default, the insertion order is determined by sorting the graphs by size, largest to smallest. If the "u" flag is set, the graphs are sorted based on the non-negative integersortvattribute at- tached to each graph. The "i" flag indicates that no sorting is done, with the graphs inserted in input order.-Gname=valueSpecifies attributes to be added to the resulting union graph. For example, this can be used to specify a graph label.-mmarginPacks the graphs allowing a margin ofoutputpoints around the parts.-nCombines the graphs at the node level. Clusters are ignored in the packing.-ooutputPrints output to the fileoutput. If not given,gvpackuses std- out.-sgraph_nameUsegraph_nameas the name of the root graph. By default, "root" is used.-uDon't pack the graphs. Just combine them into a single graph.-vVerbose mode.-?Prints usage information and exit.OPERANDSThe following operand is supported:filesNames of files containing 1 or more graphs in dot format. If nofilesoperand is specified, the standard input will be used.RETURN CODESgvpackreturns0if there were no problems, and non-zero otherwise.EXAMPLESccomps -x abc.gv | dot | gvpack | neato -s -n2 -Tps This pipeline decomposes the graph inabc.gvinto its connected compo- nents, lays out each usingdot, packs them all together again, and pro- duces the final drawing in PostScript. Of course, there is nothing to prevent one from using different layouts for each component.BUGSAll the input graphs must be directed or undirected. An input graph should not have a label, since this will be used in its layout. Sincegvpackignores root graph labels, resulting layout may contain some extra space.gvpackunsets the bounding box attribute of all non-cluster subgraphs.AUTHORSEmden R. Gansner <erg@research.att.com>SEE ALSOgvpr(1), dot(1), neato(1), twopi(1), ccomps(1), libpack(3) 27 May 2010 GVPACK(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | RETURN CODES | EXAMPLES | BUGS | AUTHORS | SEE ALSO

Want to link to this manual page? Use this URL:

<https://www.freebsd.org/cgi/man.cgi?query=gvpack&manpath=FreeBSD+12.1-RELEASE+and+Ports>