Package org.graph4j.util
Class VertexPartition<T extends VertexCollection>
java.lang.Object
org.graph4j.util.VertexPartition<T>
- Type Parameters:
T- the data type of the subsets.
Deprecated.
A partition of the vertices of the graphs in subsets of a specific type.
- Author:
- Cristian Frăsinaru
-
Constructor Summary
ConstructorsConstructorDescriptionVertexPartition(Graph graph) Deprecated.Creates a partition of the vertices of the specified graph. -
Method Summary
-
Constructor Details
-
VertexPartition
Deprecated.Creates a partition of the vertices of the specified graph.- Parameters:
graph- the graph whose vertices are partitioned.
-
-
Method Details
-
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:
trueif the partition is valid,falseotherwise.
-
toString
Deprecated.
-