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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IncidenceMatrix

  

construct incidence matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IncidenceMatrix(G)

IncidenceMatrix(G, reverse)

Parameters

G

-

graph

reverse

-

(literal) reverse the sign convention for digraphs

Description

• 

IncidenceMatrix(G) returns the incidence matrix of a graph G whose rows are indexed by the vertices and columns by the edges of G.  The order of the edges is defined by Edges(G).

• 

If G is undirected the entry  of this -matrix is  iff vertex i is incident to edge j.

• 

If G is directed the entry  of this -matrix is  iff vertex i is the head of arc j and  iff vertex i is the tail of arc j.

• 

If G is directed and reverse is specified, the entry  of this -matrix is  iff vertex i is the head of arc j and  iff vertex i is the tail of arc j.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

See Also

AdjacencyMatrix

Degree

IncidentEdges

Neighbors

Trail

 


Download Help Document