networks
degreeseq
find the degree sequence of a graph
Calling Sequence
Parameters
Description
Examples
degreeseq(G)
G
-
graph or network
Important: The networks package has been deprecated. Use the superseding command GraphTheory[DegreeSequence] instead.
This routine returns a list of vertex degrees sorted into ascending order.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[degreeseq](...).
with⁡networks:
G≔complete⁡4:
degreeseq⁡G
3,3,3,3
G≔random⁡5:
ends⁡G
1,2,1,3,1,4,2,3,3,5
1,1,2,3,3
See Also
GraphTheory
GraphTheory[DegreeSequence]
networks(deprecated)[maxdegree]
networks(deprecated)[mindegree]
networks(deprecated)[vdegree]
with
Download Help Document