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

degreeSequence -- the degree sequence of a graph

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:

  • degreeSequence(Graph)

For the programmer

The object degreeSequence is a method function.


The source of this document is in Graphs.m2:1997:0.