| Modifier and Type | Field and Description |
|---|---|
static int |
IN |
static int |
IN_OUT |
static int |
OUT |
| Constructor and Description |
|---|
KNeighborhoodFilter(java.util.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
|
| Modifier and Type | Method and Description |
|---|---|
UnassembledGraph |
filter(Graph graph)
Constructs an unassembled graph containing the k-neighbhood around the root node(s)
|
java.lang.String |
getName()
Gets a name that describes this filter.
|
public static final int IN_OUT
public static final int IN
public static final int OUT
public KNeighborhoodFilter(java.util.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-edgespublic 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-edgespublic java.lang.String getName()
FilterGraphAssemblyRecordpublic UnassembledGraph filter(Graph graph)