|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.graph.filters.impl.KNeighborhoodFilter
public class KNeighborhoodFilter
A filter used to extract the k-neighborhood around one or more root node(s)
| Field Summary | |
|---|---|
static int |
IN
|
static int |
IN_OUT
|
static int |
OUT
|
| Constructor Summary | |
|---|---|
KNeighborhoodFilter(Set rootNodes,
int radiusK,
int edgeType)
Constructs a new instance of the filter |
|
KNeighborhoodFilter(Vertex rootNode,
int radiusK,
int edgeType)
Constructs a new instance of the filter |
|
| Method Summary | |
|---|---|
UnassembledGraph |
filter(Graph graph)
Constructs an unassembled graph containing the k-neighbhood around the root node(s) |
String |
getName()
Gets a name that describes this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IN_OUT
public static final int IN
public static final int OUT
| Constructor Detail |
|---|
public KNeighborhoodFilter(Set rootNodes,
int radiusK,
int 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(Vertex rootNode,
int radiusK,
int 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 String getName()
FilterGraphAssemblyRecord
getName in interface Filterpublic UnassembledGraph filter(Graph graph)
filter in interface Filtergraph - An input graph to be filtered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||