Class WeightedHyperedge

java.lang.Object
fr.univartois.cril.jkahypar.hypergraph.WeightedHyperedge
All Implemented Interfaces:
Hyperedge

public final class WeightedHyperedge extends Object implements Hyperedge
The WeightedHyperedge decorates a Hyperedge so as to consider its weight.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Gives the vertices that are joined by this hyperedge in the hypergraph.
    int
    Gives the size of this hyperedge, measured as the number of vertices it joins.
    Gives the String representation of this hyperedge in the hMetis format.

    Methods inherited from class java.lang.Object

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

    • size

      public int size()
      Description copied from interface: Hyperedge
      Gives the size of this hyperedge, measured as the number of vertices it joins.
      Specified by:
      size in interface Hyperedge
      Returns:
      The size of this hyperedge.
    • getVertices

      public int[] getVertices()
      Description copied from interface: Hyperedge
      Gives the vertices that are joined by this hyperedge in the hypergraph.
      Specified by:
      getVertices in interface Hyperedge
      Returns:
      The vertices joined by this hyperedge.
    • toString

      public String toString()
      Description copied from interface: Hyperedge
      Gives the String representation of this hyperedge in the hMetis format.
      Specified by:
      toString in interface Hyperedge
      Overrides:
      toString in class Object
      Returns:
      The hMetis representation of this hyperedge.