signature.simple.SimpleGraphPermutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signatures Show documentation
Show all versions of signatures Show documentation
A graph signature library
The newest version!
package signature.simple;
import java.util.Iterator;
import signature.Permutor;
public class SimpleGraphPermutor extends Permutor
implements Iterator {
private SimpleGraph graph;
public SimpleGraphPermutor(SimpleGraph graph) {
super(graph.getVertexCount());
this.graph = graph;
}
public SimpleGraph next() {
int[] nextPermutation = super.getNextPermutation();
return new SimpleGraph(graph, nextPermutation);
}
public void remove() {
super.setRank(super.getRank() + 1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy