Class ProductOfCliques

java.lang.Object
it.unimi.dsi.webgraph.scratch.ProductOfCliques

public class ProductOfCliques extends Object
  • 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

      public static void main(String[] args) throws IOException, com.martiansoftware.jsap.JSAPException
      Throws:
      IOException
      com.martiansoftware.jsap.JSAPException