public class ConnectedGraphPredicate extends GraphPredicate
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectedGraphPredicate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateGraph(ArchetypeGraph graph)
Returns
true 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() |
evaluatepublic static ConnectedGraphPredicate getInstance()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean evaluateGraph(ArchetypeGraph graph)
true if there exists a path from each
vertex to all other vertices (ignoring edge direction).
Returns true for an empty graph.
evaluateGraph in class GraphPredicatePredicate.evaluate(java.lang.Object)