Module fr.univartois.cril.jkahypar
Class UnweightedHyperedge
java.lang.Object
fr.univartois.cril.jkahypar.hypergraph.UnweightedHyperedge
- All Implemented Interfaces:
Hyperedge
The UnweightedHyperedge represents a
Hyperedge for which no weight is
considered.-
Method Summary
Modifier and TypeMethodDescriptionint[]Gives the vertices that are joined by this hyperedge in the hypergraph.static UnweightedHyperedgejoining(int... vertices) Creates a new UnweightedHyperedge.static UnweightedHyperedgeCreates a new UnweightedHyperedge.intsize()Gives the size of this hyperedge, measured as the number of vertices it joins.toString()Gives the String representation of this hyperedge in the hMetis format.withWeight(int weight) Creates a hyperedge joining the same vertices as this one, and having the given weight.
-
Method Details
-
joining
Creates a new UnweightedHyperedge.- Parameters:
vertices- The vertices joined by the hyperedge.- Returns:
- The created hyperedge.
-
joining
Creates a new UnweightedHyperedge.- Parameters:
vertices- The vertices joined by the hyperedge.- Returns:
- The created hyperedge.
-
size
public int size()Description copied from interface:HyperedgeGives the size of this hyperedge, measured as the number of vertices it joins. -
getVertices
public int[] getVertices()Description copied from interface:HyperedgeGives the vertices that are joined by this hyperedge in the hypergraph.- Specified by:
getVerticesin interfaceHyperedge- Returns:
- The vertices joined by this hyperedge.
-
withWeight
Creates a hyperedge joining the same vertices as this one, and having the given weight.- Parameters:
weight- The weight of the hyperedge to create.- Returns:
- The created hyperedge.
-
toString
Description copied from interface:HyperedgeGives the String representation of this hyperedge in the hMetis format.
-