LinuxCommandLibrary

gvpack

merges multiple laid-out graphs into a single combined graph

TLDR

Merge layout graphs

$ gvpack [graph1.dot] [graph2.dot] > [merged.dot]
copy
Pack at graph level
$ gvpack -g [graph1.dot] [graph2.dot] > [merged.dot]
copy
Pack at node level
$ gvpack -n [graph1.dot] [graph2.dot] > [merged.dot]
copy
Combine without packing
$ gvpack -u [graph1.dot] [graph2.dot] > [merged.dot]
copy
Array layout
$ gvpack -array [graph1.dot] [graph2.dot] > [merged.dot]
copy
Full pipeline
$ ccomps -x [graph.dot] | dot | gvpack | neato -s -n2 -Tpng -o [output.png]
copy

SYNOPSIS

gvpack [options] [files]

DESCRIPTION

gvpack merges multiple laid-out graphs into a single combined graph. Input must be in dot format with layout information (produced by dot or neato without -T flag). By default, packing is at cluster level, preventing graph parts from overlapping. Output can be rendered with neato -s -n2 and desired output format.

PARAMETERS

-g

Pack at graph level.
-n
Pack at node level, ignoring clusters.
-u
Combine without packing.
-array
Arrange in array layout.
-o file
Output to file.
-s name
Root graph name (default: root).

CAVEATS

All input graphs must be either all directed or all undirected. Nodes with same names are automatically renamed.

SEE ALSO

dot(1), neato(1), ccomps(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community