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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsDirected

  

test if graph is directed

  

IsWeighted

  

test if graph is weighted

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsDirected(G)

IsWeighted(G)

Parameters

G

-

graph

Description

• 

The IsDirected(G) function returns true or false depending on whether the input graph is a directed or undirected graph.

• 

The IsWeighted(G) function returns true if G is a weighted graph, and false otherwise.

• 

To make a graph directed or weighted, use the MakeDirected or MakeWeighted commands.

• 

To remove directions and weights from a graph, use the UnderlyingGraph command.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

(12)

(13)

See Also

MakeDirected

MakeWeighted

UnderlyingGraph

WeightMatrix

 


Download Help Document