GraphTheory
IsTree
test if graph is a tree
Calling Sequence
Parameters
Description
Examples
IsTree(G)
G
-
an undirected graph
An undirected graph G on vertices is a tree if it is connected and has exactly edges.
The IsTree command returns true if the input graph is a tree, and false otherwise.
See Also
CompleteBinaryTree
IsAcyclic
IsConnected
IsForest
NumberOfEdges
NumberOfVertices
RandomTree
SpanningTree
TreeHeight
Download Help Document