|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.algorithms.connectivity.KNeighborhoodExtractor
public class KNeighborhoodExtractor
Extracts the subgraph (neighborhood) from a graph whose nodes are no more than distance k away from at least one of the root nodes (starting vertices).
| Constructor Summary | |
|---|---|
KNeighborhoodExtractor()
|
|
| Method Summary | |
|---|---|
static Graph |
extractInDirectedNeighborhood(DirectedGraph graph,
Set rootNodes,
int radiusK)
Extracts the subgraph comprised of all vertices within distance K (in-directed) from any node in rootNodes. |
static Graph |
extractNeighborhood(Graph graph,
Set rootNodes,
int radiusK)
Extracts the subgraph comprised of all vertices within distance K (undirected) from any node in rootNodes. |
static Graph |
extractOutDirectedNeighborhood(DirectedGraph graph,
Set rootNodes,
int radiusK)
Extracts the subgraph comprised of all vertices within distance K (out-directed) from any node in rootNodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KNeighborhoodExtractor()
| Method Detail |
|---|
public static Graph extractNeighborhood(Graph graph,
Set rootNodes,
int radiusK)
graph - the graph whose subgraph is to be extractedrootNodes - the set of root nodes (starting vertices) in the graphradiusK - the radius of the subgraph to be extracted
public static Graph extractOutDirectedNeighborhood(DirectedGraph graph,
Set rootNodes,
int radiusK)
graph - the graph whose subgraph is to be extractedrootNodes - the set of root nodes (starting vertices) in the graphradiusK - the radius of the subgraph to be extracted
public static Graph extractInDirectedNeighborhood(DirectedGraph graph,
Set rootNodes,
int radiusK)
graph - the graph whose subgraph is to be extractedrootNodes - the set of root nodes (starting vertices) in the graphradiusK - the radius of the subgraph to be extracted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||