Package it.unimi.dsi.webgraph.scratch
Class ProductOfCliques
java.lang.Object
it.unimi.dsi.webgraph.scratch.ProductOfCliques
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static int[]
nodeCoordinates
(int x, int s, int t) static int
nodeName
(int[] x, int s, int t) Given the node (represented by s coordinates, each between 0 and t-1) produce a single node identifier.
-
Constructor Details
-
ProductOfCliques
public ProductOfCliques()
-
-
Method Details
-
nodeCoordinates
public static int[] nodeCoordinates(int x, int s, int t) -
nodeName
public static int nodeName(int[] x, int s, int t) Given the node (represented by s coordinates, each between 0 and t-1) produce a single node identifier.- Parameters:
x
- the node coordinates.s
- the number of cliques.t
- the size of each clique.- Returns:
- the node identifier.
-
main
- Throws:
IOException
com.martiansoftware.jsap.JSAPException
-