Английская Википедия:Digraph realization problem
The digraph realization problem is a decision problem in graph theory. Given pairs of nonnegative integers <math>((a_1,b_1),\ldots,(a_n,b_n))</math>, the problem asks whether there is a labeled simple directed graph such that each vertex <math>v_i</math> has indegree <math>a_i</math> and outdegree <math>b_i</math>.
Solutions
The problem belongs to the complexity class P. Two algorithms are known to prove that. The first approach is given by the Kleitman–Wang algorithms constructing a special solution with the use of a recursive algorithm. The second one is a characterization by the Fulkerson–Chen–Anstee theorem, i.e. one has to validate the correctness of <math>n</math> inequalities.
Other Notations
The problem 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 <math>(a_1,\cdots,a_n)</math> and <math>(b_1,\ldots,b_n)</math>. Note that the diagonal of the matrix only contains zeros. The problem is then often denoted by 0-1-matrices for given row and column sums. In the classical literature the problem was sometimes stated in the context of contingency tables by contingency tables with given marginals.
Related problems
Similar problems describe the degree sequences of simple graphs, simple directed graphs with loops, and simple bipartite graphs. The first problem is the so-called graph realization problem. The second and third one are equivalent and are known as the bipartite realization problem. Шаблон:Harvtxt gives a characterization for directed multigraphs with a bounded number of parallel arcs and loops to a given degree sequence. The additional constraint of the acycilicity of the directed graph is known as dag realization. Шаблон:Harvtxt proved the NP-completeness of this problem. Шаблон:Harvtxt showed that the class of opposed sequences is in P. The problem uniform sampling a directed graph to a fixed degree sequence is to construct a solution for the digraph realization problem with the additional constraint that such each solution comes with the same probability. This problem was shown to be in FPTAS for regular sequences by Шаблон:Harvs The general problem is still unsolved.
References