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:
- Predicate, UncopyablePredicate
- 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()
equals
public boolean equals(Object o)
hashCode
public int hashCode()
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