acyclic1
Make directed graph acyclic
Usage
acyclic [-nv?]
[-o
outfile]
[file]
Overview
acyclic is a filter that takes a directed graph as input and outputs a copy of the graph with sufficient edges reversed to make the graph acyclic. The reversed edge inherits all of the attributes of the original edge. The optional file argument specifies where the input graph is stored; by default, the program reads from stdin.
Options
The following options are supported:
-
-n -
No output is produced, though the return value will indicate whether the graph is acyclic or not.
-
-v -
Print information about whether the file is acyclic, has a cycle or is undirected.
-ooutfile-
causes the output to be written to the specified file; by default, output is written to
stdout.
-
-? -
option causes the program to print usage information.
Return codes
acyclic returns 0 if the graph is acyclic; 1 if the graph has a cycle; 2 if the graph is undirected; and 255 if there are any errors.
Releases
12 releases since Debian 3.1 (Sarge); the text changed 2 times.