edu.uci.ics.jung.graph.predicates
Class NotInGraphEdgePredicate
java.lang.Object
edu.uci.ics.jung.graph.predicates.GPredicate
edu.uci.ics.jung.graph.predicates.EdgePredicate
edu.uci.ics.jung.graph.predicates.NotInGraphEdgePredicate
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
- public class NotInGraphEdgePredicate
- extends EdgePredicate
A predicate that tests to see whether a specified
edge is currently part of a graph. May be used as
a constraint. AbstractSparseGraph
includes this edge constraint by default. Should
not be used as a subset specification.
- Author:
- Joshua O'Madadhain
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NotInGraphEdgePredicate
public NotInGraphEdgePredicate(ArchetypeGraph ag)
toString
public java.lang.String toString()
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
evaluateEdge
public boolean evaluateEdge(ArchetypeEdge e)
- Returns
true
if this edge is not currently
part of graph ag
.
- Specified by:
evaluateEdge
in class EdgePredicate