Class CompleteMultipartiteGenerator


public class CompleteMultipartiteGenerator extends RandomMultipartiteGenerator
Generator for complete multipartite graphs. A complete k-partite graph is a graph whose vertices can be decomposed into k disjoint stable sets (no two vertices within the same set are adjacent) and every pair of graph vertices in distinct stable sets are adjacent.
Author:
Cristian Frăsinaru
  • Constructor Details

    • CompleteMultipartiteGenerator

      public CompleteMultipartiteGenerator(int... numVertices)
      Creates a generator for a complete multipartite graph, where the number of vertices of each stable set is specified.
      Parameters:
      numVertices - the number of vertices in each stable set.
  • Method Details