Macaulay2 » Documentation
Packages » Graphs :: degreeSequence
next | previous | forward | backward | up | index | toc

degreeSequence -- the degree sequence of a graph

Synopsis

Description

The degree sequence of a graph is the list of the degrees of its vertices sorted in nonincreasing order.

i1 : degreeSequence pathGraph 5

o1 = {2, 2, 2, 1, 1}

o1 : List

Ways to use degreeSequence :

For the programmer

The object degreeSequence is a method function.