GraphTheory[IsForest]
|
Calling Sequence
|
|
IsForest(G)
|
|
Description
|
|
•
|
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.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?