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

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.ParallelEdgePredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class ParallelEdgePredicate
extends EdgePredicate

A predicate that checks to see whether the specified edge is parallel to any other edge. A negation of this predicate may be used as an edge constraint that will prevent the constrained graph from accepting parallel edges. This predicate is probably not appropriate for use as a subset specification.

Two distinct edges are considered to be parallel to one another if the following conditions hold:

Author:
Joshua O'Madadhain

Field Summary
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Method Summary
 boolean evaluateEdge(ArchetypeEdge ae)
          Returns true if there exists an edge which is parallel to the specified edge.
static ParallelEdgePredicate 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 ParallelEdgePredicate getInstance()

toString

public java.lang.String toString()

evaluateEdge

public boolean evaluateEdge(ArchetypeEdge ae)

Returns true if there exists an edge which is parallel to the specified edge.

Specified by:
evaluateEdge in class EdgePredicate
See Also:
Vertex.findEdgeSet(Vertex)