Class Connection

java.lang.Object
org.elasticsearch.client.graph.Connection

public class Connection extends Object
A Connection links exactly two Vertex objects. The basis of a connection is one or more documents have been found that contain this pair of terms and the strength of the connection is recorded as a weight.
  • Constructor Details

    • Connection

      public Connection(Vertex from, Vertex to, double weight, long docCount)
  • Method Details

    • getId

      public Connection.ConnectionId getId()
    • getFrom

      public Vertex getFrom()
    • getTo

      public Vertex getTo()
    • getWeight

      public double getWeight()
      Returns:
      a measure of the relative connectedness between a pair of Vertex objects
    • getDocCount

      public long getDocCount()
      Returns:
      the number of documents in the sampled set that contained this pair of Vertex objects.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object