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

java.lang.Object
  extended by edu.uci.ics.jung.graph.predicates.GPredicate
      extended by edu.uci.ics.jung.graph.predicates.VertexPredicate
          extended by edu.uci.ics.jung.graph.predicates.SourceVertexPredicate
All Implemented Interfaces:
Predicate

public class SourceVertexPredicate
extends VertexPredicate

Evaluates to true if and only if the specified vertex is a source, i.e., has no incoming directed edges.

Author:
Joshua O'Madadhain

Field Summary
protected static SourceVertexPredicate instance
           
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Constructor Summary
protected SourceVertexPredicate()
           
 
Method Summary
 boolean evaluateVertex(ArchetypeVertex arg0)
           
static SourceVertexPredicate getInstance()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.VertexPredicate
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static SourceVertexPredicate instance
Constructor Detail

SourceVertexPredicate

protected SourceVertexPredicate()
Method Detail

getInstance

public static SourceVertexPredicate getInstance()

evaluateVertex

public boolean evaluateVertex(ArchetypeVertex arg0)
Specified by:
evaluateVertex in class VertexPredicate
See Also:
VertexPredicate.evaluateVertex(edu.uci.ics.jung.graph.ArchetypeVertex)