TreeGraphQ[g] yields True if the graph g is a tree and False otherwise.
Test whether a graph is a tree:
A graph with cycles is not a tree:
Graph DirectedGraph TreeGraph ConnectedGraphQ AcyclicGraphQ
400+ new features, including the new Wolfram Predictive Interface, social network analysis, enterprise CDF deployment, and more »