Class PartitioningAlgorithm.PartitioningImpl<V>

java.lang.Object
org.jgrapht.alg.interfaces.PartitioningAlgorithm.PartitioningImpl<V>
Type Parameters:
V - the vertex type
All Implemented Interfaces:
Serializable, Iterable<Set<V>>, PartitioningAlgorithm.Partitioning<V>
Enclosing interface:
PartitioningAlgorithm<V>

public static class PartitioningAlgorithm.PartitioningImpl<V> extends Object implements PartitioningAlgorithm.Partitioning<V>, Serializable
Default implementation of a vertex partition
See Also:
  • Constructor Details

    • PartitioningImpl

      public PartitioningImpl(List<Set<V>> classes)
      Construct a new vertex partitioning.
      Parameters:
      classes - the partition classes
      Throws:
      NullPointerException - if classes is null
    • PartitioningImpl

      public PartitioningImpl(Map<V,Integer> vertexToPartitionMap)
      Construct a new vertex partitioning.
      Parameters:
      vertexToPartitionMap - the vertex to partition index map
      Throws:
      NullPointerException - if vertexToPartitionMap is null
  • Method Details