Skip to main content

Directed graphs

A directed graph (or digraph) G=(V,E)G=(V,E) consists of vertices VV and ordered pairs of edges EV×VE\subseteq V \times V. Each directed edge is written as (u,v)E(u,v) \in E, meaning that this is an edge from uu to vv. Notice that E(G)V(G)2|E(G)| \leq |V(G)|^2 for directed graphs GG.

If (u,v)E(u,v) \in E, we say that vv is an out-neighbor of uu and vv is an in-neighbor of vv. Denote by deg+(v)\deg^+(v) and deg(v)\deg^-(v) the numbers of out- and in-neighbors of vv respectively.

Exercise 25 (Directed Handshake)

Let GG be a digraph. Prove: vVdeg+(v)=vVdeg(v)=E(G)\sum_{v \in V} \deg^+(v) = \sum_{v \in V} \deg^-(v) = |E(G)|

Given an undirected graph G0=(V,E0)G_0 = (V,E_0), we say that a digraph GG is an orientation of G0G_0 if it can be obtained by "giving directions" to edges in G0G_0. More formally, E0={{u,v}:(u,v)E}E_0 = \{\{u,v\}: (u,v) \in E\} and for each edge {u,v}E0\{u,v\} \in E_0, exactly one of (u,v)(u,v) or (v,u)(v,u) belongs to EE. Notice that every undirected graph GG has 2E(G)2^{|E(G)|} different orientations. When GG is an orientation of G0G_0, we say that G0G_0 is a symmetrization of GG (obtained by removing directions from GG).

There are two notions of connectedness in digraphs. For a digraph GG, if a symmetrization of GG is connected, we say that GG is weakly connected. If, for every u,vV(G)u,v \in V(G), there is a directed walk from uu to vv in GG, then GG is said to be strongly connected.

Exercise 26

Prove that a weakly connected digraph contains at least n1n-1 edges and a strongly connected digraph contains at least nn edges.