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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsTree

  

test if graph is a tree

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsTree(G)

Parameters

G

-

an undirected graph

Description

• 

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.

Examples

(1)

(2)

(3)

(4)

See Also

CompleteBinaryTree

IsAcyclic

IsConnected

IsForest

NumberOfEdges

NumberOfVertices

RandomTree

SpanningTree

TreeHeight

 


Download Help Document