Package org.nlpub.watset.util
Class Neighbors
java.lang.Object
org.nlpub.watset.util.Neighbors
Utilities for extracting neighborhood graphs and iterating over them.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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 Details
-
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
-