edu.uci.ics.jung.graph.predicates
Class IsolatedVertexPredicate

java.lang.Object
  extended byedu.uci.ics.jung.graph.predicates.GPredicate
      extended byedu.uci.ics.jung.graph.predicates.VertexPredicate
          extended byedu.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

Field Summary
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Method Summary
 boolean evaluateVertex(ArchetypeVertex v)
          Returns true if the argument is a Vertex whose degree is 0.
static IsolatedVertexPredicate getInstance()
          Returns an instance of this class.
 java.lang.String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.VertexPredicate
evaluate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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)