Class VertexPredicateFilter<V,E>
java.lang.Object
edu.uci.ics.jung.algorithms.filters.VertexPredicateFilter<V,E>
- All Implemented Interfaces:
com.google.common.base.Function<Graph<V,
,E>, Graph<V, E>> Filter<V,
,E> Function<Graph<V,
E>, Graph<V, E>>
Transforms the input graph into one which contains only those vertices
that pass the specified
Predicate
. The filtered graph
is a copy of the original graph (same type, uses the same vertex and
edge objects). Only those edges whose entire incident vertex collection
passes the predicate are copied into the new graph.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVertexPredicateFilter
(com.google.common.base.Predicate<V> vertex_pred) Creates an instance based on the specified vertexPredicate
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
vertex_pred
-
-
Constructor Details
-
VertexPredicateFilter
Creates an instance based on the specified vertexPredicate
.- Parameters:
vertex_pred
- the predicate that specifies which vertices to add to the filtered graph
-
-
Method Details