Degree matrix

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In the mathematical field of algebraic graph theory, the degree matrix of an undirected graph is a diagonal matrix which contains information about the degree of each vertex—that is, the number of edges attached to each vertex.[1] It is used together with the adjacency matrix to construct the Laplacian matrix of a graph: the Laplacian matrix is the difference of the degree matrix and the adjacency matrix.[2]

Definition

[edit | edit source]

Given a graph G=(V,E) with |V|=n, the degree matrix D for G is a n×n diagonal matrix defined as[1]

Di,j:={deg(vi)if i=j0otherwise

where the degree deg(vi) of a vertex counts the number of times an edge terminates at that vertex. In an undirected graph, this means that each loop increases the degree of a vertex by two. In a directed graph, the term degree may refer either to indegree (the number of incoming edges at each vertex) or outdegree (the number of outgoing edges at each vertex).

Example

[edit | edit source]

The following undirected graph has a 6x6 degree matrix with values:

Vertex labeled graph Degree matrix
(400000030000002000000300000030000001)

Note that in the case of undirected graphs, an edge that starts and ends in the same node increases the corresponding degree value by 2 (i.e. it is counted twice).

Properties

[edit | edit source]

The degree matrix of a k-regular graph has a constant diagonal of k.

According to the degree sum formula, the trace of the degree matrix is twice the number of edges of the considered graph.

References

[edit | edit source]
  1. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..