In graph theory, the degree (or valency) of a vertex of a graph is the number of edges incident to the vertex. The degree of a vertex is denoted The maximum degree of a graph G, denoted by Δ(G), is the maximum degree of its vertices, and the minimum degree of a graph, denoted by δ(G), is the minimum degree of its vertices. In the graph on the right, the maximum degree is 3 and the minimum degree is 0. In a regular graph, all degrees are the same, and so we can speak of the degree of the graph.
The definition means that each loop is counted twice towards a vertex degree, because each edge has two endpoints and each endpoint adds to the degree.
The degree sequence of an undirected graph is the non-increasing sequence of its vertex degrees; for the above graph it is (3, 3, 3, 2, 2, 1, 0). The degree sequence is a graph invariant so isomorphic graphs have the same degree sequence. However, the degree sequence does not, in general, uniquely identify a graph; non-isomorphic graphs may have the same degree sequence.
The degree sum formula (also known as "the Handshaking Theorem") states that, given a graph ,
This may be seen as a form of double counting, in which we count the number of edge-vertex incidences by summing over vertices on the left hand side, and by summing over edges on the right hand side. The formula implies that in any graph, the number of vertices with odd degree is even.
As a consequence of the degree sum formula, any sequence with an odd sum, such as (3, 3, 1), cannot be realized as the degree sequence of a graph. The converse is also true: if a sequence has an even sum, it is the degree sequence of a graph. The construction of such a graph is simple: connect odd vertices in pairs, and fill with self-loops.
Often one wishes to search for simple graphs, making the degree sequence problem more challenging. Obviously the sequence (8, 4) is not the degree sequence of a simple graph, since we would have the contradiction Δ(G) > (the number of vertices - 1). The sequence (3, 3, 3, 1) is also not the degree sequence of a simple graph, but in this case the reason is less obvious. Finding general criteria for degree sequences of simple graphs is a classical problem; solutions have been offered by Erdős and Gallai (1960), Havel (1955) and Hakimi (1961), Choudum and Sierksma et al. (1991).