AcyclicQ

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

AcyclicQ[g]
yields True if graph g is acyclic.

更多信息更多信息