public class EdgePredicateFilter extends GeneralEdgeAcceptFilter
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.collections.Predicate |
predicate |
Constructor and Description |
---|
EdgePredicateFilter(EdgePredicate ep) |
EdgePredicateFilter(org.apache.commons.collections.Predicate p) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptEdge(Edge e)
Determines whether the current edge should be accepted
into the Graph.
|
java.lang.String |
getName()
Gets a name that describes this filter.
|
filter, filter
public EdgePredicateFilter(EdgePredicate ep)
public EdgePredicateFilter(org.apache.commons.collections.Predicate p)
public boolean acceptEdge(Edge e)
GeneralEdgeAcceptFilter
acceptEdge
in class GeneralEdgeAcceptFilter
e
- the input edge that is being evaluated.GeneralVertexAcceptFilter.acceptVertex(edu.uci.ics.jung.graph.Vertex)
public java.lang.String getName()
Filter
GraphAssemblyRecord
Filter.getName()