Vertex degree

Overview
Important

In an undirected graph, the degree of a vertex vv is the number of edges incident to vv. If there are loops (edges that start and end at vv), each loop counts as two towards the degree.

Important properties

  • The sum of the degrees of all vertices in a graph equals twice the number of edges.

  • A vertex of degree 0 is called an isolated vertex.

  • A vertex of degree 1 is called a leaf (in trees).