Class Connection


  • public class Connection
    extends java.lang.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 Detail

      • Connection

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

      • 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​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object