All Known Implementing Classes:
UnweightedHyperedge, WeightedHyperedge

public interface Hyperedge
The Hyperedge interface defines the contract of the data structures representing the hyperedges of a hypergraph.
  • 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.
  • Method Details

    • size

      int size()
      Gives the size of this hyperedge, measured as the number of vertices it joins.
      Returns:
      The size of this hyperedge.
    • getVertices

      int[] getVertices()
      Gives the vertices that are joined by this hyperedge in the hypergraph.
      Returns:
      The vertices joined by this hyperedge.
    • toString

      String toString()
      Gives the String representation of this hyperedge in the hMetis format.
      Overrides:
      toString in class Object
      Returns:
      The hMetis representation of this hyperedge.