Interface NodeSimilarity


public interface NodeSimilarity
Encapsulates comparing node distances.
  • Method Details

    • score

      default float score(int node1, int node2)
      for one-off comparisons between nodes
    • scoreProvider

      NodeSimilarity.ScoreFunction scoreProvider(int node1)
      For when we're going to compare node1 with multiple other nodes. This allows us to skip loading node1's vector (potentially from disk) redundantly for each comparison.