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() |
evaluate
public static ConnectedGraphPredicate getInstance()
public java.lang.String toString()
toString
in class java.lang.Object
public 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 GraphPredicate
Predicate.evaluate(java.lang.Object)