acyclic(1) - Linux man page
Name
acyclic - make directed graph acyclicSynopsis
acyclic [ -nv? ] [ -o outfile ] [ file ]Description
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.
- -o outfile
- 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.Bugs
If the graph is strict and there is a cycle of length 2, the attributes of the reversed edge are lost.Some edge attributes are non-symmetric, referring to either the head or tail node. At present, there is no mechanism or convention for for correctly switching or renaming these.
Authors
Stephen C. North <north@research.att.com>Emden R. Gansner <erg@research.att.com>
