Close
Close window
DegreeSequence - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

GraphTheory

DegreeSequence

degree sequence of graph

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 graph with 4 vertices and 4 edges

(1)
>

DegreeSequenceG

1,3,2,2

(2)
>

HGraphTrail1,2,3,4,2,directed

HGraph 2: a directed graph with 4 vertices and 4 arcs

(3)
>

DegreeSequenceH

1,3,2,2

(4)
>

DrawGraphG


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /