test if graph is a forest
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.
F≔Graph 1: an undirected unweighted graph with 6 vertices and 3 edge(s)
Download Help Document
What kind of issue would you like to report? (Optional)