IsForest - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsForest

  

test if graph is a forest

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsForest(G)

Parameters

G

-

graph

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)

See Also

ConnectedComponents

InducedSubgraph

IsTree

 


Download Help Document