DegreeSequence - Maple Help

Online Help

All Products    Maple    MapleSim


GraphTheory

  

DegreeSequence

  

degree sequence of graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

DegreeSequence(G)

Parameters

G

-

graph

Description

• 

DegreeSequence returns a list of the degrees of the vertices of G. For directed graphs, the directions of the edges are ignored.

Examples

withGraphTheory:

GGraphTrail1,2,3,4,2

GGraph 1: an undirected unweighted graph with 4 vertices and 4 edge(s)

(1)

DegreeSequenceG

1,3,2,2

(2)

HGraphTrail1,2,3,4,2,directed

HGraph 2: a directed unweighted graph with 4 vertices and 4 arc(s)

(3)

DegreeSequenceH

1,3,2,2

(4)

DrawGraphG

See Also

Degree

IsRegular

MinimumDegree

Trail