degree sequence of graph
DegreeSequence returns a list of the degrees of the vertices of G. For directed graphs, the directions of the edges are ignored.
G ≔ Graph⁡Trail⁡1,2,3,4,2
G≔Graph 1: an undirected graph with 4 vertices and 4 edge(s)
H ≔ Graph⁡Trail⁡1,2,3,4,2,directed
H≔Graph 2: a directed graph with 4 vertices and 4 arc(s)
Download Help Document
What kind of issue would you like to report? (Optional)