GraphTheory[DegreeSequence] - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Discrete Mathematics : Graph Theory : GraphTheory Package : GraphTheory/DegreeSequence

GraphTheory[DegreeSequence]

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:

G:=GraphTrail1,2,3,4,2

G:=Graph 1: an undirected unweighted graph with 4 vertices and 4 edge(s)

(1)

DegreeSequenceG

1,3,2,2

(2)

H:=GraphTrail1,2,3,4,2,directed

H:=Graph 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


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam