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

java.lang.Object
  extended byedu.uci.ics.jung.graph.predicates.GraphPredicate
      extended byedu.uci.ics.jung.graph.predicates.ConnectedGraphPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class ConnectedGraphPredicate
extends GraphPredicate

Author:
Joshua O'Madadhain

Method Summary
 boolean evaluateGraph(ArchetypeGraph graph)
          Returns true if arg0 is a connected Graph: that is, if there exists a path from each vertex to all other vertices (ignoring edge direction).
static ConnectedGraphPredicate getInstance()
          Returns an instance of this class.
 java.lang.String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.GraphPredicate
evaluate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static ConnectedGraphPredicate getInstance()
Returns an instance of this class.


toString

public java.lang.String toString()

evaluateGraph

public boolean evaluateGraph(ArchetypeGraph graph)
Returns true if arg0 is a connected Graph: that is, if there exists a path from each vertex to all other vertices (ignoring edge direction).

Specified by:
evaluateGraph in class GraphPredicate
See Also:
Predicate.evaluate(java.lang.Object)