Class KleitmanWangDigraphRealization

java.lang.Object
org.graph4j.realization.KleitmanWangDigraphRealization
All Implemented Interfaces:
DigraphRealizationAlgorithm

public class KleitmanWangDigraphRealization extends Object implements DigraphRealizationAlgorithm
This class provides a method to generate a directed graph from a given sequence of in-degrees and out-degrees, using the Kleitman-Wang algorithm. The time complexity is O(n^2 log n), where n is the number of vertices.
Author:
Cristian Frăsinaru
  • Constructor Details

    • KleitmanWangDigraphRealization

      public KleitmanWangDigraphRealization(int[] indegrees, int[] outdegrees)
      Creates an algorithm for the digraph realization problem.
      Parameters:
      indegrees - the in-degrees of the vertices.
      outdegrees - the out-degrees of the vertices.
  • Method Details