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:
- 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
Constructor Summary |
protected |
IsolatedVertexPredicate()
This constructor is protected in order to keep equals working by
retaining only one instance. |
IsolatedVertexPredicate
protected IsolatedVertexPredicate()
- This constructor is protected in order to keep equals working by
retaining only one instance. (Currently, since there can only be one
instance, equals trivially returns true. If this class is extended, be
careful to write equals correctly.)
getInstance
public static IsolatedVertexPredicate getInstance()
- Returns an instance of this class.
toString
public String toString()
- Overrides:
toString
in class Object
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)