Forrest logo
back to the gvpack tool

gvpack:tldr:a29b6

gvpack: Combine several graph layouts at the node level, ignoring clusters.
$ gvpack -n ${path-to-layout1-gv} ${path-to-layout2-gv ---} > ${path-to-output-gv}
try on your machine

This command is using the "gvpack" tool to merge two Graphviz layout files into a single output file.

Here's a breakdown of the command syntax and what each component does:

  • "gvpack" is the command being executed.
  • "-n" is an optional flag that specifies the maximum value for node IDs in the output file.
  • "${path-to-layout1-gv}" is the placeholder for the path to the first Graphviz layout file that you want to merge.
  • "${path-to-layout2-gv}" is the placeholder for the path to the second Graphviz layout file that you want to merge.
  • ">" is a redirect operator used to redirect the output of the command to a file.
  • "${path-to-output-gv}" is the placeholder for the path to the output file where the merged layouts will be saved.

In summary, this command uses "gvpack" to combine two Graphviz layout files, specified by "${path-to-layout1-gv}" and "${path-to-layout2-gv}", into a single file determined by "${path-to-output-gv}". The resulting merged layout is saved in the output file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gvpack tool