edu.uci.ics.jung.graph.predicates
Class IsolatedVertexPredicate
java.lang.Object
edu.uci.ics.jung.graph.predicates.GPredicate
edu.uci.ics.jung.graph.predicates.VertexPredicate
edu.uci.ics.jung.graph.predicates.IsolatedVertexPredicate
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
- public class IsolatedVertexPredicate
- extends VertexPredicate
A predicate which tests to see whether a specified
vertex has any neighbors. Not suitable for use
as a constraint.
- Author:
- Joshua O'Madadhain
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getInstance
public static IsolatedVertexPredicate getInstance()
- Returns an instance of this class.
toString
public java.lang.String toString()
evaluateVertex
public boolean evaluateVertex(ArchetypeVertex v)
- Returns
true
if the argument is a Vertex
whose degree is 0.
- Specified by:
evaluateVertex
in class VertexPredicate
- See Also:
Predicate.evaluate(java.lang.Object)