edu.uci.ics.jung.graph.predicates
Class KPartiteEdgePredicate

java.lang.Object
  extended by edu.uci.ics.jung.graph.predicates.GPredicate
      extended by edu.uci.ics.jung.graph.predicates.EdgePredicate
          extended by edu.uci.ics.jung.graph.predicates.KPartiteEdgePredicate
All Implemented Interfaces:
Predicate

public class KPartiteEdgePredicate
extends EdgePredicate

An edge predicate that passes Edges whose endpoints satisfy distinct elements of the Predicate collection passed in as a parameter to the constructor. May be used as an edge constraint.

Author:
Joshua O'Madadhain

Field Summary
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Constructor Summary
KPartiteEdgePredicate(Collection vertex_partitions)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean evaluateEdge(ArchetypeEdge edge)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.EdgePredicate
evaluate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KPartiteEdgePredicate

public KPartiteEdgePredicate(Collection vertex_partitions)
Method Detail

evaluateEdge

public boolean evaluateEdge(ArchetypeEdge edge)
Specified by:
evaluateEdge in class EdgePredicate
See Also:
EdgePredicate.evaluateEdge(edu.uci.ics.jung.graph.ArchetypeEdge)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object