Interface LinkPredictionAlgorithm<V,​E>

    • Method Detail

      • predict

        default java.util.List<Triple<V,​V,​java.lang.Double>> predict​(java.util.List<Pair<V,​V>> queries)
        Predict an edge between a set of vertex pairs. The magnitude and the interpretation of the returned scores depend solely on the algorithm.
        Parameters:
        queries - a list of vertex pairs
        Returns:
        a list of vertex triples where the last component is an edge prediction score
      • predict

        double predict​(V u,
                       V v)
        Predict an edge between two vertices. The magnitude and the interpretation of the returned score depend solely on the algorithm.
        Parameters:
        u - first vertex
        v - second vertex
        Returns:
        a prediction score