edu.uci.ics.jung.graph.predicates
Class KPartiteEdgePredicate
java.lang.Object
edu.uci.ics.jung.graph.predicates.GPredicate
edu.uci.ics.jung.graph.predicates.EdgePredicate
edu.uci.ics.jung.graph.predicates.KPartiteEdgePredicate
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
- public class KPartiteEdgePredicate
- extends EdgePredicate
An edge predicate that passes Edge
s 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
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
KPartiteEdgePredicate
public KPartiteEdgePredicate(java.util.Collection vertex_partitions)
evaluateEdge
public boolean evaluateEdge(ArchetypeEdge edge)
- Specified by:
evaluateEdge
in class EdgePredicate
- See Also:
EdgePredicate.evaluateEdge(edu.uci.ics.jung.graph.ArchetypeEdge)
toString
public java.lang.String toString()
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()