|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.algorithms.filters.KNeighborhoodFilter<V,E>
public class KNeighborhoodFilter<V,E>
A filter used to extract the k-neighborhood around one or more root node(s). The k-neighborhood is defined as the subgraph induced by the set of vertices that are k or fewer hops (unweighted shortest-path distance) away from the root node.
| Nested Class Summary | |
|---|---|
static class |
KNeighborhoodFilter.EdgeType
The type of edge to follow for defining the neighborhood. |
| Constructor Summary | |
|---|---|
KNeighborhoodFilter(Set<V> rootNodes,
int radiusK,
KNeighborhoodFilter.EdgeType edgeType)
Constructs a new instance of the filter. |
|
KNeighborhoodFilter(V rootNode,
int radiusK,
KNeighborhoodFilter.EdgeType edgeType)
Constructs a new instance of the filter. |
|
| Method Summary | |
|---|---|
Graph<V,E> |
transform(Graph<V,E> graph)
Constructs an unassembled graph containing the k-neighborhood around the root node(s). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KNeighborhoodFilter(Set<V> rootNodes,
int radiusK,
KNeighborhoodFilter.EdgeType edgeType)
rootNodes - the set of root nodesradiusK - the neighborhood radius around the root setedgeType - 0 for in/out edges, 1 for in-edges, 2 for out-edges
public KNeighborhoodFilter(V rootNode,
int radiusK,
KNeighborhoodFilter.EdgeType edgeType)
rootNode - the root noderadiusK - the neighborhood radius around the root setedgeType - 0 for in/out edges, 1 for in-edges, 2 for out-edges| Method Detail |
|---|
public Graph<V,E> transform(Graph<V,E> graph)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||