|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgrapht.experimental.isomorphism.VertexDegreeEquivalenceComparator<V,E>
public class VertexDegreeEquivalenceComparator<V,E>
Two vertexes are equivalent under this comparator if and only if:
AND
Nested Class Summary | |
---|---|
protected class |
VertexDegreeEquivalenceComparator.InOutDegrees
Simple structure used to hold the two ints: vertex in degree and vertex out degree. |
Constructor Summary | |
---|---|
VertexDegreeEquivalenceComparator()
|
Method Summary | |
---|---|
boolean |
equivalenceCompare(V vertex1,
V vertex2,
Graph<V,E> context1,
Graph<V,E> context2)
Compares the in degrees and the out degrees of the two vertexes. |
int |
equivalenceHashcode(V vertex,
Graph<V,E> context)
Hashes using the in & out degree of a vertex |
protected VertexDegreeEquivalenceComparator.InOutDegrees |
getInOutDegrees(Graph<V,E> aContextGraph,
V vertex)
Calculates the In and Out degrees of vertexes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VertexDegreeEquivalenceComparator()
Method Detail |
---|
public boolean equivalenceCompare(V vertex1, V vertex2, Graph<V,E> context1, Graph<V,E> context2)
One may reside in an Undirected Graph and the other in a Directed graph, or both on the same graph type.
equivalenceCompare
in interface EquivalenceComparator<V,Graph<V,E>>
EquivalenceComparator.equivalenceCompare(Object, Object, Object,
Object)
public int equivalenceHashcode(V vertex, Graph<V,E> context)
equivalenceHashcode
in interface EquivalenceComparator<V,Graph<V,E>>
EquivalenceComparator.equivalenceHashcode(Object, Object)
protected VertexDegreeEquivalenceComparator.InOutDegrees getInOutDegrees(Graph<V,E> aContextGraph, V vertex)
aContextGraph
- vertex
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |