Class AbstractHypergraphBuilder

java.lang.Object
fr.univartois.cril.jkahypar.hypergraph.AbstractHypergraphBuilder
All Implemented Interfaces:
HypergraphBuilder

public abstract class AbstractHypergraphBuilder extends Object implements HypergraphBuilder
The AbstractHypergraphBuilder provides a base implementation for HypergraphBuilder.
Since:
0.2.0
  • Field Details

    • numberOfVertices

      protected int numberOfVertices
      The number of vertices in the hypergraph.
    • vertexWeights

      protected int[] vertexWeights
      The weights of the vertices. If vertices are not weighted, this array remains null.
    • numberOfHyperedges

      protected int numberOfHyperedges
      The number of hyperedges in the hypergraph.
    • hyperedgeWeights

      protected int[] hyperedgeWeights
      The weights of the hyperedges. If hyperedges are not weighted, this array remains null.
    • hyperedgeIndices

      protected long[] hyperedgeIndices
      The indices at which the vertices of each hyperedge start in hyperedgeVertices.
    • hyperedgeVertices

      protected int[] hyperedgeVertices
      The vertices of the different hyperedges.
  • Constructor Details

    • AbstractHypergraphBuilder

      protected AbstractHypergraphBuilder(int nbVertices, int nbHyperedges)
      Creates a new AbstractHypergraphBuilder.
      Parameters:
      nbVertices - The number of vertices in the hypergraph.
      nbHyperedges - The number of hyperedges in the hypergraph.
  • Method Details