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

java.lang.Object
  extended byedu.uci.ics.jung.graph.predicates.GPredicate
      extended byedu.uci.ics.jung.graph.predicates.EdgePredicate
          extended byedu.uci.ics.jung.graph.predicates.ReciprocatedDirectedEdgePredicate
All Implemented Interfaces:
org.apache.commons.collections.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

Field Summary
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Method Summary
 boolean evaluateEdge(ArchetypeEdge e)
           
static ReciprocatedDirectedEdgePredicate getInstance()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.EdgePredicate
evaluate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static ReciprocatedDirectedEdgePredicate getInstance()

toString

public java.lang.String toString()

evaluateEdge

public boolean evaluateEdge(ArchetypeEdge e)
Specified by:
evaluateEdge in class EdgePredicate
See Also:
EdgePredicate.evaluateEdge(edu.uci.ics.jung.graph.ArchetypeEdge)