GraphTheory
IsForest
test if graph is a forest
Calling Sequence
Parameters
Description
Examples
IsForest(G)
G
-
graph
The IsForest command returns true if the input graph is a forest or false otherwise. A forest is a graph whose connected components are all trees.
See Also
ConnectedComponents
InducedSubgraph
IsTree
Download Help Document