V - the type of the verticesE - the type of the edgespublic class IsomorphicGraphMapping<V,E> extends Object implements GraphMapping<V,E>
| Constructor and Description | 
|---|
| IsomorphicGraphMapping(org.jgrapht.alg.isomorphism.GraphOrdering<V,E> g1,
                      org.jgrapht.alg.isomorphism.GraphOrdering<V,E> g2,
                      int[] core1,
                      int[] core2)Construct a new isomorphic graph mapping | 
| Modifier and Type | Method and Description | 
|---|---|
| E | getEdgeCorrespondence(E e,
                     boolean forward)Gets the mapped value where the key is  edge | 
| V | getVertexCorrespondence(V v,
                       boolean forward)Gets the mapped value where the key is  vertex | 
| boolean | hasEdgeCorrespondence(E e)Checks if a edge e from the first graph has a corresponding edge in the second graph | 
| boolean | hasVertexCorrespondence(V v)Checks if a vertex v from the first graph has a corresponding vertex in the second graph | 
| boolean | isEqualMapping(GraphMapping<V,E> rel)Checks for equality. | 
| String | toString() | 
public IsomorphicGraphMapping(org.jgrapht.alg.isomorphism.GraphOrdering<V,E> g1, org.jgrapht.alg.isomorphism.GraphOrdering<V,E> g2, int[] core1, int[] core2)
g1 - the first graphg2 - the second graph which is a possible subgraph of g1core1 - the mapping as array (forwards)core2 - the mapping as array (backwards)public V getVertexCorrespondence(V v, boolean forward)
GraphMappingvertexgetVertexCorrespondence in interface GraphMapping<V,E>v - vertex in one of the graphsforward - if true, uses mapping from graph1 to graph2; if false, use mapping from graph2
        to graph1public E getEdgeCorrespondence(E e, boolean forward)
GraphMappingedgegetEdgeCorrespondence in interface GraphMapping<V,E>e - edge in one of the graphsforward - if true, uses mapping from graph1 to graph2; if false, use mapping from graph2
        to graph1public boolean hasVertexCorrespondence(V v)
v - the vertexpublic boolean hasEdgeCorrespondence(E e)
e - the edgepublic boolean isEqualMapping(GraphMapping<V,E> rel)
rel - the corresponding mappingCopyright © 2016. All rights reserved.