tred(1)

tred1

Transitive reduction filter for directed graphs

Usage

tred [-ovr?] [files]

Overview

tred computes the transitive reduction of directed graphs, and prints the resulting graphs to a file or standard output. This removes edges implied by transitivity. Nodes and subgraphs are not otherwise affected. The ``meaning'' and validity of the reduced graphs is application dependent. tred is particularly useful as a preprocessor to dot to reduce clutter in dense layouts.

Undirected graphs are silently ignored.

Options

The following options are supported:

-o FILE

Redirect output to the given file. By default, output goes to stdout.

-v

Verbose output to stderr.

-r

Print information of removed edges to stderr.

-?

Print usage information.

Operands

The following operand is supported:

files

Names of files containing 1 or more graphs in dot format. If no files operand is specified, the standard input will be used.

Diagnostics

If a graph has cycles, its transitive reduction is not uniquely defined. In this case tred emits a warning.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1–10
  2. 11–13
  3. Arch

-? since Debian 11 (Bullseye); -o since Arch Linux 2026-11-01; -r since Arch Linux 2026-11-01; -v since Debian 11 (Bullseye).

Bugs

Using bitmaps internally would substantially decrease running time.

Authors

Stephen C. North <[email protected]>
Emden R. Gansner <[email protected]>

From graphviz 16.1.0-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.