Class CompleteBipartiteGenerator


public class CompleteBipartiteGenerator extends AbstractBipartiteGenerator
Generator for complete bipartite graphs. A complete bipartite graph is a graph whose vertices can be decomposed into two disjoint stable sets (no two vertices within the same set are adjacent) and every pair of vertices, one in the left side and one in the right side of the partition, are adjacent. This class allows the creation of both directed and undirected bipartite graphs. In case of directed graphs, the edges may be oriented left to right, right to left, or in both directions.
Author:
Cristian Frăsinaru
  • Constructor Details

    • CompleteBipartiteGenerator

      public CompleteBipartiteGenerator(int n1, int n2)
    • CompleteBipartiteGenerator

      public CompleteBipartiteGenerator(int first1, int last1, int first2, int last2)
  • Method Details