Package es.urjc.etsii.grafo.util
Class PermutationGenerator
java.lang.Object
es.urjc.etsii.grafo.util.PermutationGenerator
Contains methods to generate permutations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(Collection<T> elements) Generate all the possible permutations for the given set
-
Constructor Details
-
PermutationGenerator
public PermutationGenerator()
-
-
Method Details
-
generate
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
-