nop

pretty-print graph file in canonical DOT format

TLDR

Pretty-print a graph file
$ nop [graph.gv]
Check DOT syntax without producing output
$ nop -p [graph.gv]
Pretty-print from stdin
$ cat [graph.gv] | nop

SYNOPSIS

nop [-p?] [files...]

DESCRIPTION

nop reads a stream of graphs in DOT format and prints each in pretty-printed (canonical) format on stdout. If no files are given, it reads from stdin.The tool is part of the Graphviz package and is useful for normalizing DOT files or validating graph syntax.

PARAMETERS

FILES

One or more DOT graph files to process. Reads from stdin if none given.
-p
Produce no output; only check the input for valid DOT syntax.
-?
Print usage information.

INSTALL

sudo apt install graphviz
sudo dnf install graphviz
sudo pacman -S graphviz
sudo apk add graphviz
sudo zypper install graphviz
brew install graphviz
nix profile install nixpkgs#graphviz

CAVEATS

Part of the Graphviz package. Only processes DOT graph language files. Does not perform any layout computation.

HISTORY

nop is part of Graphviz, the open-source graph visualization software originally developed at AT&T Labs Research.

SEE ALSO

acyclic(1), gvpr(1), gvcolor(1), ccomps(1), sccmap(1), tred(1)