Title: Theory / Unimportant / CS / Descriptive / Dot / command
Tags: computer_to_instruction fromCommandLine hasNotNewEffectReturnsMeaning
On every note of this deck, unless a note says otherwise:
Page: https://graphviz.gitlab.io/_pages/doc/info/command.html
Page: https://graphviz.gitlab.io/_pages/doc/info/command.html

Instruction: -Gfoo
Effect: Set the graph attribute foo to true
Context: foo input
Variables: foo a graphviz program (dot,)

Instruction: -Gfoo=bar
Effect: Set the graph attribute foo to bar
Context: foo input
Variables: foo a graphviz program (dot,)

Instruction: -Nfoo=bar
Effect: Set the default node attribute foo to bar
Context: foo input
Variables: foo a graphviz program (dot,)

Instruction: -Nfoo
Effect: Set the default node attribute foo to true
Context: foo input
Variables: foo a graphviz program (dot,)

Instruction: -Efoo
Effect: Set the default edge attribute foo to true
Context: foo input
Variables: foo a graphviz program (dot,)

Instruction: -Efoo=bar
Effect: Set the default edge attribute foo to bar
Context: foo input
Variables: foo a graphviz program (dot,)

Instruction: -Kfoo
Effect: Specifies which default layout algorithm to use, overriding the default from the command name.
Context: foo input
Variables: foo a graphviz program (dot,)

Fla: -V
Effect: Emit version information and exit.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -Tfoo
Effect: Set output language to one of the supported formats. By default, attributed dot is produced.
Depending on how Graphviz was built, there may be multiple renderers for generating a particular output format, and multiple formatters for creating the final output. For example, a typical installation can produce PNG output using either the Cairo or GD library. The desired rendering engine can be specified after a colon. If there are multiple formatting engines available, the desired one can be specified in a similar fashion after the rendering engine. Thus, -Tpng:cairo specifies PNG output produced by Cairo (using the Cairo's default formatter), and -Tpng:cairo:gd specifies PNG output produced by Cairo formatted using the GD library.
If no renderer is specified, or a renderer but no formatter, the default one is invoked. The flag -Tformat: produces a list of all of the renderers available for the specified format, the first one listed with a prefix matching format being the default. Using the -v flag, described below, will print which format, renderer, and formatter are actually used.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -lfoo
Effect: User-supplied, device-dependent library text. Multiple flags may be given. These strings are passed to the code generator at the beginning of output.
For PostScript output, they are treated as file names whose content will be included in the preamble after the standard preamble. If library is the empty string "", the standard preamble is not emitted.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -nfoo
Effect: Sets no-op flag in neato. If set, neato assumes nodes have already been positioned and all nodes have a pos attribute giving the positions. It then performs an optional adjustment to remove node-node overlap, depending on the value of the overlap attribute, computes the edge layouts, depending on the value of the splines attribute, and emits the graph in the appropriate format.
Use node positions as specified, with no adjustment to remove node-node overlaps, and use any edge layouts already specified by the pos attribute. neato computes an edge layout for any edge that does not have a pos attribute. As usual, edge layout is guided by the splines attribute.
Prefix: Graphviz foo input
Variables: foo a graphviz program (dot,)
Assuming: foo>1

Fla: -n1 -n.
Effect: Sets no-op flag in neato.
Prefix: foo input
Extra: If set, neato assumes nodes have already been positioned and all nodes have a pos attribute giving the positions. It then performs an optional adjustment to remove node-node overlap, depending on the value of the overlap attribute, computes the edge layouts, depending on the value of the splines attribute, and emits the graph in the appropriate format.
Variables: foo a graphviz program (dot,)

Fla: -n
Effect: Sets no-op flag in neato. If set, neato assumes nodes have already been positioned and all nodes have a pos attribute giving the positions. It then performs an optional adjustment to remove node-node overlap, depending on the value of the overlap attribute, computes the edge layouts, depending on the value of the splines attribute, and emits the graph in the appropriate format.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -ofoo
Effect: output file is foo
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -O
Effect: Automatically generate output file names based on the input file name and the various output formats specified by the -T flags.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -P
Effect: Automatically generate a graph that shows the plugin configuration of the current executable.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -q
Effect: Suppress warning messages.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -sfoo
Effect: set input scale to foo. This number is used to convert the point coordinate units used in the pos attribute into inches, which is what is expected by neato and fdp. Thus, feeding the output of a graph laid out by one program into neato or fdp almost always requires this flag. Ignored if the -n flag is used.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -v
Effect: Verbose mode
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -x
Effect: In neato, on input, prune isolated nodes and peninsulas. This removes uninteresting graph structure and produces a less cluttered drawing.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -y
Effect: The coordinate system is inverted, so that increasing values of y correspond to movement from top to bottom.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Fla: -?
Effect: Print usage information, then exit.
Prefix: foo input
Variables: foo a graphviz program (dot,)

Question: What happens when multiple -T are given as option to a graphviz program ?
Answer: Multiple output file are produced.
Page: https://graphviz.gitlab.io/_pages/doc/info/command.html
Context: foo input