public class GraphSlicer extends Object
Constructor and Description |
---|
GraphSlicer() |
Modifier and Type | Method and Description |
---|---|
static <E> AbstractGraph<E> |
project(Graph<E> G,
Predicate<E> fmember) |
static <T> Graph<T> |
prune(Graph<T> g,
Predicate<T> p)
Prune a graph to only the nodes accepted by the
Predicate p |
static <T> Set<T> |
slice(Graph<T> g,
Predicate<T> p)
Performs a backward slice.
|
public static <T> Set<T> slice(Graph<T> g, Predicate<T> p)
T
- type for nodesg
- the graph to slicef
- identifies targets for the backward sliceWalaException
public static <T> Graph<T> prune(Graph<T> g, Predicate<T> p)
Predicate
ppublic static <E> AbstractGraph<E> project(Graph<E> G, Predicate<E> fmember)