Degree of a vertex (Graph theory)

guillefix 4th November 2016 at 2:43pm

The degree, kik_i, of a vertex, ii, is the number of edges connected to the vertex. For an undirected graph with nn vertices, it is related to the adjacency matrix by:

ki=j=1nAijk_i=\sum_{j=1}^n A_{ij}

Also the total number of edges mm is:

2m=j=1nkj=ijAij2m=\sum_{j=1}^n k_j=\sum_{ij}A_{ij}

as each edge has two ends ('stubs').

The mean degree, cc is then:

c=2mnc=\frac{2m}{n}.

Aside: a node with a "high" degree is sometimes called a 'hub'.
A network where all nodes have same degree is called 'regular'.

The number of edges in a complete (i.e. with max # of edges) simple graph can be found by counting the number of edges, where each edge represents a choice of a pair of vertices where the order doesn't matter. The number of such choices is (n2)\binom{n}{2}.

The density (or connectance), ρ\rho, is the fraction of these that are actually present:

ρ=m(n2)=2mn(n1)=cn1cn\rho=\frac{m}{\binom{n}{2}}=\frac{2m}{n(n-1)}=\frac{c}{n-1}\approx\frac{c}{n}

the last approx. is for nn large.

A network is sparse if ρ0\rho \rightarrow 0 as nn \rightarrow \infty. It is dense otherwise. These definitions make sense mathematically when one has a model for an ensemble of graphs, that can be defined for any nn. For an empirical network, one has to situations:

  • One has empirical data for the network at different values of nn, and so the behaviour as nn increased can be deduced.
  • One has to find an appropriate model to define an ensemble of random graphs for different values of nn, that somehow captures the type of network of the empirical one.

Directed networks

For directed networks one has two types of degree:

in-degree, the number of ingoing edges (sum of a row in adj. matrix)

out-degree, the number of outgoing edges (sum of columns in adj. matrix).

Now the total number of edges mm is:

m=j=1nkjin=j=1nkjout=ijAijm=\sum_{j=1}^n k_j^{\text{in}}=\sum_{j=1}^n k_j^{\text{out}}=\sum_{ij}A_{ij}

as each edge has one ingoing end and one outgoing end. Clearly then the mean degrees are equal: cin=coutc=mnc_{\text{in}}=c_{\text{out}}\equiv c=\frac{m}{n}.

In a weighted network, one defines the strength of a node as the weighted degree:

si=j=1nwijs_i=\sum_{j=1}^{n}w_{ij},

where wijw_{ij} is the weight matrix.