GraphTheory
IsAcyclic
test if graph is acyclic
Calling Sequence
Parameters
Description
Examples
IsAcyclic(G)
G
-
directed graph
IsAcyclic returns true if the input has no directed cycle and false otherwise.
with⁡GraphTheory:
IsAcyclic⁡Digraph⁡Trail⁡1,2,3,4,5
true
IsAcyclic⁡Digraph⁡Trail⁡1,2,3,4,5,2
false
See Also
AcyclicPolynomial
CycleBasis
IsTree
Trail
Download Help Document