All Downloads are FREE. Search and download functionalities are using the official Maven repository.

signature.simple.SimpleGraphPermutor Maven / Gradle / Ivy

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