edu.uci.ics.jung.graph.predicates
Class NotInGraphVertexPredicate
java.lang.Object
edu.uci.ics.jung.graph.predicates.GPredicate
edu.uci.ics.jung.graph.predicates.VertexPredicate
edu.uci.ics.jung.graph.predicates.NotInGraphVertexPredicate
- All Implemented Interfaces:
- UncopyablePredicate, Predicate
public class NotInGraphVertexPredicate
- extends VertexPredicate
- implements UncopyablePredicate
A predicate that tests to see whether a specified
vertex is currently part of a graph. May be used as
a constraint. AbstractSparseGraph
includes this vertex constraint by default. Should
not be used as a subset specification.
- Author:
- Joshua O'Madadhain
NotInGraphVertexPredicate
public NotInGraphVertexPredicate(ArchetypeGraph ag)
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
evaluateVertex
public boolean evaluateVertex(ArchetypeVertex av)
- Returns
true
if this vertex is not currently
a member of any graph.
- Specified by:
evaluateVertex
in class VertexPredicate