Class HypergraphPartition

java.lang.Object
fr.univartois.cril.jkahypar.HypergraphPartition

public final class HypergraphPartition extends Object
The HypergraphPartition represents a partition of a hypergraph.
  • Method Details

    • blockOf

      public int blockOf(int vertex)
      Gives the identifier of the block to which the given vertex belongs.
      Parameters:
      vertex - The vertex to give the block of.
      Returns:
      The identifier of the block.
    • objectiveValue

      public int objectiveValue()
      Gives the value of the objective function on this partition.
      Returns:
      The value of the objective function.
    • getBlocks

      public List<List<Integer>> getBlocks()
      Gives the blocks of which this partition is made of.
      Returns:
      The blocks of this partition.
      Since:
      0.2.0