A sequence ( ( a 1 , b 1 ) , … , ( a n , b n ) ) of nonnegative integer pairs with a 1 ≥ ⋯ ≥ a n is digraphic if and only if ∑ i = 1 n a i = ∑ i = 1 n b i and the following inequality holds for k such that 1 ≤ k ≤ n :
∑ i = 1 k a i ≤ ∑ i = 1 k min ( b i , k − 1 ) + ∑ i = k + 1 n min ( b i , k ) Berger proved that it suffices to consider the k th inequality such that 1 ≤ k < n with a k > a k + 1 and for k = n .
The theorem can also be stated in terms of zero-one matrices. The connection can be seen if one realizes that each directed graph has an adjacency matrix where the column sums and row sums correspond to ( a 1 , … , a n ) and ( b 1 , … , b n ) . Note that the diagonal of the matrix only contains zeros. There is a connection to the relation majorization. We define a sequence ( a 1 ∗ , … , a n ∗ ) with a k ∗ := | { b i | i > k , b i ≥ k } | + | { b i | i ≤ k , b i ≥ k − 1 } | . Sequence ( a 1 ∗ , … , a n ∗ ) can also be determined by a corrected Ferrers diagram. Consider sequences ( a 1 , … , a n ) , ( b 1 , … , b n ) and ( a 1 ∗ , … , a n ∗ ) as n -dimensional vectors a , b and a ∗ . Since ∑ i = 1 k a i ∗ = ∑ i = 1 k min ( b i , k − 1 ) + ∑ i = k + 1 n min ( b i , k ) by applying the principle of double counting (proof technique), the theorem above states that a pair of nonnegative integer sequences ( a , b ) with nonincreasing a is digraphic if and only if vector a ∗ majorizes a .
A sequence ( ( a 1 , b 1 ) , … , ( a n , b n ) ) of nonnegative integer pairs with a 1 ≥ ⋯ ≥ a n is digraphic if and only if ∑ i = 1 n a i = ∑ i = 1 n b i and there exists a sequence c such that the pair ( c , b ) is digraphic and c majorizes a .
Similar theorems describe the degree sequences of simple graphs, simple directed graphs with loops, and simple bipartite graphs. The first problem is characterized by the Erdős–Gallai theorem. The latter two cases, which are equivalent see Berger, are characterized by the Gale–Ryser theorem.