Package org.nlpub.watset.graph
Interface NodeWeighting<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
- All Known Implementing Classes:
NodeWeightings.LabelNodeWeighting,NodeWeightings.LinearNodeWeighting,NodeWeightings.LogNodeWeighting,NodeWeightings.TopNodeWeighting
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface NodeWeighting<V,E>
Node weighting for Chinese Whispers.- See Also:
ChineseWhispers,NodeWeightings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleapply(org.jgrapht.Graph<V,E> graph, Map<V,Integer> labels, V node, V neighbor)Compute the weight of the node in the neighborhood graph.
-
-
-
Method Detail
-
apply
double apply(org.jgrapht.Graph<V,E> graph, Map<V,Integer> labels, V node, V neighbor)
Compute the weight of the node in the neighborhood graph.- Parameters:
graph- the neighborhood graphlabels- the map of graph nodes to their labelsnode- the target nodeneighbor- the neighboring node- Returns:
- the weight of the node in the neighborhood
-
-