Class CombinationGenerator

java.lang.Object
es.urjc.etsii.grafo.util.CombinationGenerator

public class CombinationGenerator extends Object
Contains methods to generate permutations
  • Constructor Details

    • CombinationGenerator

      public CombinationGenerator()
  • Method Details

    • generate

      public static <T> Set<Set<T>> generate(Collection<T> elements)
      Generate all the possible permutations for the given set
      Type Parameters:
      T - Generic Type
      Parameters:
      elements - collection of elements to permute
      Returns:
      returns a list with all the possible permutations