org.jgrapht.experimental.isomorphism
Class VertexDegreeEquivalenceComparator.InOutDegrees

java.lang.Object
  extended by org.jgrapht.experimental.isomorphism.VertexDegreeEquivalenceComparator.InOutDegrees
Enclosing class:
VertexDegreeEquivalenceComparator<V,E>

protected class VertexDegreeEquivalenceComparator.InOutDegrees
extends Object

Simple structure used to hold the two ints: vertex in degree and vertex out degree. Useful as returned value for methods which calculate both at the same time.

Since:
Jul 21, 2005
Author:
Assaf

Field Summary
 int inDegree
           
 int outDegree
           
 
Constructor Summary
VertexDegreeEquivalenceComparator.InOutDegrees(int aInDegree, int aOutDegree)
           
 
Method Summary
 boolean equals(Object obj)
          Checks both inDegree and outDegree.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inDegree

public int inDegree

outDegree

public int outDegree
Constructor Detail

VertexDegreeEquivalenceComparator.InOutDegrees

public VertexDegreeEquivalenceComparator.InOutDegrees(int aInDegree,
                                                      int aOutDegree)
Method Detail

equals

public boolean equals(Object obj)
Checks both inDegree and outDegree. Does not check class type to save time. If should be used with caution.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2013. All rights reserved.