Module org.jgrapht.core
Package org.jgrapht.alg.linkprediction
Class SørensenIndexLinkPrediction<V,E>
- java.lang.Object
-
- org.jgrapht.alg.linkprediction.SørensenIndexLinkPrediction<V,E>
-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
LinkPredictionAlgorithm<V,E>
@Deprecated public class SørensenIndexLinkPrediction<V,E> extends Object implements LinkPredictionAlgorithm<V,E>
Deprecated.Class will be replaced by SorensenIndexLinkPredictionPredict links using the Sørensen Index.This is a local method which computes $s_{xy} = \frac{2|\Gamma(u)\cap\Gamma(v))|}{k(u) +k(v)}$ where for a node $v$, $\Gamma(v)$ denotes the set of neighbors of $v$ and $k(v) = |\Gamma(v)|$ denotes the degree of $v$.
See the following two papers:- Liben‐Nowell, David, and Jon Kleinberg. "The link‐prediction problem for social networks." Journal of the American society for information science and technology 58.7 (2007): 1019-1031.
- Zhou, Tao, Linyuan Lü, and Yi-Cheng Zhang. "Predicting missing links via local information." The European Physical Journal B 71.4 (2009): 623-630.
- Author:
- Dimitrios Michail
-
-
Constructor Summary
Constructors Constructor Description SørensenIndexLinkPrediction(Graph<V,E> graph)
Deprecated.Create a new prediction
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
predict(V u, V v)
Deprecated.Predict an edge between two vertices.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.alg.interfaces.LinkPredictionAlgorithm
predict
-
-
-
-
Method Detail
-
predict
public double predict(V u, V v)
Deprecated.Description copied from interface:LinkPredictionAlgorithm
Predict an edge between two vertices. The magnitude and the interpretation of the returned score depend solely on the algorithm.- Specified by:
predict
in interfaceLinkPredictionAlgorithm<V,E>
- Parameters:
u
- first vertexv
- second vertex- Returns:
- a prediction score
-
-