Class VertexPartition<T extends VertexCollection>

java.lang.Object
org.graph4j.util.VertexPartition<T>
Type Parameters:
T - the data type of the subsets.

@Deprecated public class VertexPartition<T extends VertexCollection> extends Object
Deprecated.
A partition of the vertices of the graphs in subsets of a specific type.
Author:
Cristian Frăsinaru
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a partition of the vertices of the specified graph.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the subsets of the partition.
    boolean
    Deprecated.
    A partition is valid if the subsets are disjoint and covers all vertices in the graph.
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • VertexPartition

      public VertexPartition(Graph graph)
      Deprecated.
      Creates a partition of the vertices of the specified graph.
      Parameters:
      graph - the graph whose vertices are partitioned.
  • Method Details

    • getSubsets

      public List<T> getSubsets()
      Deprecated.
      Returns the subsets of the partition.
      Returns:
      the subsets of the partition.
    • isValid

      public boolean isValid()
      Deprecated.
      A partition is valid if the subsets are disjoint and covers all vertices in the graph.
      Returns:
      true if the partition is valid, false otherwise.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object