Module fr.univartois.cril.jkahypar
Interface Hypergraph
public interface Hypergraph
The Hypergraph interface defines the contract of the data structures representing
hypergraphs.
-
Method Summary
Modifier and TypeMethodDescriptiongetHyperedge(int index) Gives theindex-th hyperedge in this hypergraph.long[]Gives the indices at which the vertices of each hyperedge start in the array returned bygetHyperedgeVertices().int[]Gives the vertices of the hyperedges in the hypergraph.int[]Gives the weights of the hyperedges in this hypergraph.intGives the number of hyperedges in this hypergraph.intGives the number of vertices in this hypergraph.int[]Gives the weights of the vertices in this hypergraph.toString()Gives a String representation of this hypergraph using the hMetis format.
-
Method Details
-
getNumberOfVertices
int getNumberOfVertices()Gives the number of vertices in this hypergraph.- Returns:
- The number of vertices.
-
getVertexWeights
int[] getVertexWeights()Gives the weights of the vertices in this hypergraph.- Returns:
- The weights of the vertices, or
nullif vertices are not weighted.
-
getNumberOfHyperedges
int getNumberOfHyperedges()Gives the number of hyperedges in this hypergraph.- Returns:
- The number of hyperedges.
-
getHyperedge
Gives theindex-th hyperedge in this hypergraph.- Parameters:
index- The index of the hyperedge to get.- Returns:
- The
index-th hyperedge.
-
getHyperedgeWeights
int[] getHyperedgeWeights()Gives the weights of the hyperedges in this hypergraph.- Returns:
- The weights of the hyperedges, or
nullif hyperedges are not weighted.
-
getHyperedgeIndices
long[] getHyperedgeIndices()Gives the indices at which the vertices of each hyperedge start in the array returned bygetHyperedgeVertices().- Returns:
- The indices of the vertices for each hyperedge.
- See Also:
-
getHyperedgeVertices
int[] getHyperedgeVertices()Gives the vertices of the hyperedges in the hypergraph.- Returns:
- The vertices of the different hyperedges.
- See Also:
-
toString
String toString()Gives a String representation of this hypergraph using the hMetis format.
-