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

signature.edgecolored.EdgeColoredQuotientGraph Maven / Gradle / Ivy

The newest version!
package signature.edgecolored;

import java.util.Map;

import signature.AbstractQuotientGraph;

public class EdgeColoredQuotientGraph extends AbstractQuotientGraph {
    
    private EdgeColoredGraph graph;
    
    public EdgeColoredQuotientGraph(EdgeColoredGraph graph, Map colorMap) {
        super();
        this.graph = graph;
        
        EdgeColoredGraphSignature graphSignature = new EdgeColoredGraphSignature(graph, colorMap);
        super.construct(graphSignature.getSymmetryClasses());
    }
    
    public EdgeColoredQuotientGraph(EdgeColoredGraph graph, Map colorMap, int height) {
        super();
        this.graph = graph;
        
        EdgeColoredGraphSignature graphSignature = new EdgeColoredGraphSignature(graph, colorMap);
        super.construct(graphSignature.getSymmetryClasses(height));
    }

    public boolean isConnected(int i, int j) {
        return graph.isConnected(i, j);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy