V - The vertex typepublic class PermutationCycle<V extends Vertex>
extends java.lang.Object
| Constructor and Description |
|---|
PermutationCycle(java.util.List<V> cycle)
Constructs a cycle given a list of vertices it consists of
|
PermutationCycle(java.util.List<V> vertices,
java.util.List<java.lang.Integer> indexes)
Constructs a permutation cycle given a list of vertices and indexes
of those which should be a part of the cycle
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<V> |
getCycle() |
void |
setCycle(java.util.List<V> cycle) |
int |
size() |
java.lang.String |
toString() |
public PermutationCycle(java.util.List<V> cycle)
cycle - Cycle's verticespublic PermutationCycle(java.util.List<V> vertices, java.util.List<java.lang.Integer> indexes)
vertices - A list of verticesindexes - Indexes of vertices which should be included in the cyclepublic java.util.List<V> getCycle()
public void setCycle(java.util.List<V> cycle)
cycle - Cycle's vertices to setpublic int size()
public java.lang.String toString()
toString in class java.lang.Object