Vertex degree
Function
context | G=⟨V,E,ψ⟩ … undirected graph |
definiendum | dom d=V |
range | u,v∈V,u≠v |
range | e∈E |
definiendum | d(v):=|{e | ∃u. ψ(e)={u,v}}+2 card{e | ψ(e)={v,v}}| |
Discussion
The value dG(v) is the number of neighbours of v with loops counted twice.
It is also equal to the sum over the v-row or v-column of the adjacency matrix of the graph.
Theorems
- Because each edge connects two vertices, the number of vertices with odd degree is even, and then so is the sum over all degrees. I.e.
|{v | d(v)...odd}| … even
∑v∈Vd(v) … even
- For a simple graph, if A is the adjacency matrix, then
tr A2=∑k(∑iAkiAik)=∑i(∑kδi connected to k)=d(vi)
This also works with MMt, where M is the incidence matrix.