Package org.nlpub.watset.util
Class Neighbors
- java.lang.Object
-
- org.nlpub.watset.util.Neighbors
-
public final class Neighbors extends Object
Utilities for extracting neighborhood graphs and iterating over them.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V,E>
org.jgrapht.Graph<V,E>graph(org.jgrapht.Graph<V,E> graph, V node)Extract the neighborhood graph for the given node.
-
-
-
Method Detail
-
graph
public static <V,E> org.jgrapht.Graph<V,E> graph(org.jgrapht.Graph<V,E> graph, V node)Extract the neighborhood graph for the given node.- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph- Parameters:
graph- the graphnode- the target node- Returns:
- a neighborhood of
node
-
-