edu.uci.ics.jung.graph.predicates
Class ReciprocatedDirectedEdgePredicate
java.lang.Object
edu.uci.ics.jung.graph.predicates.GPredicate
edu.uci.ics.jung.graph.predicates.EdgePredicate
edu.uci.ics.jung.graph.predicates.ReciprocatedDirectedEdgePredicate
- All Implemented Interfaces:
- Predicate
public class ReciprocatedDirectedEdgePredicate
- extends EdgePredicate
Returns true
if and only if this edge is
a DirectedEdge
that has an antiparallel
DirectedEdge
in this graph. Two directed
edges are antiparallel to one another if one edge's
source is the other's destination, and vice versa.
- Author:
- Joshua O'Madadhain
ReciprocatedDirectedEdgePredicate
protected ReciprocatedDirectedEdgePredicate()
getInstance
public static ReciprocatedDirectedEdgePredicate getInstance()
toString
public String toString()
- Overrides:
toString
in class Object
evaluateEdge
public boolean evaluateEdge(ArchetypeEdge e)
- Specified by:
evaluateEdge
in class EdgePredicate
- See Also:
EdgePredicate.evaluateEdge(edu.uci.ics.jung.graph.ArchetypeEdge)