degreeSequence G

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

The object degreeSequence is a method function.