Package it.unimi.dsi.webgraph.scratch
Class ProductOfCliques
- java.lang.Object
-
- it.unimi.dsi.webgraph.scratch.ProductOfCliques
-
public class ProductOfCliques extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProductOfCliques()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static int[]nodeCoordinates(int x, int s, int t)static intnodeName(int[] x, int s, int t)Given the node (represented by s coordinates, each between 0 and t-1) produce a single node identifier.
-
-
-
Method Detail
-
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
public static void main(java.lang.String[] args) throws java.io.IOException, com.martiansoftware.jsap.JSAPException- Throws:
java.io.IOExceptioncom.martiansoftware.jsap.JSAPException
-
-