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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Connection.ConnectionId
    An identifier (implements hashcode and equals) that represents a unique key for a Connection
  • Constructor Summary

    Constructor Description
    Connection​(Vertex from, Vertex to, double weight, long docCount)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    long getDocCount()  
    Vertex getFrom()  
    Connection.ConnectionId getId()  
    Vertex getTo()  
    double getWeight()  
    int hashCode()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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()
      a measure of the relative connectedness between a pair of Vertex objects
    • getDocCount

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

      public boolean equals​(java.lang.Object obj)
      equals in class java.lang.Object
    • hashCode

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