Class ProductOfCliques


  • public class ProductOfCliques
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProductOfCliques

        public ProductOfCliques()
    • 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.IOException
        com.martiansoftware.jsap.JSAPException