Combinatorica`
Combinatorica`

TreeQ

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

TreeQ[g]

yields True if graph is a tree.

Details

  • TreeQ functionality is now available in the built-in Wolfram Language function TreeGraphQ.
  • To use TreeQ, you first need to load the Combinatorica Package using Needs["Combinatorica`"].

See Also

TreeGraphQ  AcyclicQ  RandomTree

Tutorials