LinuxCommandLibrary

nop

Check validity and pretty-print graphs in canonical format.

TLDR

Pretty-print one or more graphs in canonical format

$ nop [path/to/input1.gv] [path/to/input2.gv ...] > [path/to/output.gv]
copy


Check one or more graphs for validity, producing no output graph
$ nop -p [path/to/input1.gv] [path/to/input2.gv ...]
copy


Display help for nop
$ nop -?
copy

SYNOPSIS

nop [ -p? ] [ files ]

DESCRIPTION

nop reads a stream of graphs and prints each in pretty-printed (canonical) format on stdout. If no files are given, it reads from stdin.

OPTIONS

The following options are supported:

-p

Produce no output - just check the input for valid DOT.

-?

Print usage information.

EXIT STATUS

If any errors occurred while processing any input, such as a file not found or a file containing illegal DOT, EXIT_FAILURE is returned. Otherwise EXIT_SUCCESS is returned.

SEE ALSO

wc(1), acyclic(1), gvpr(1), gvcolor(1), ccomps(1), sccmap(1), tred(1), libgraph(3)

Copied to clipboard