Class SocialRelationship

java.lang.Object
org.jgrapht.graph.DefaultWeightedEdge
io.github.ai4ci.abm.SocialRelationship
All Implemented Interfaces:
Serializable, Cloneable

public class SocialRelationship extends org.jgrapht.graph.DefaultWeightedEdge implements Serializable
A weighted network edge.
See Also:
  • Constructor Details

    • SocialRelationship

      public SocialRelationship()
  • Method Details

    • getRelationshipStrength

      public double getRelationshipStrength()
      The significance of the relationship. This is a probability / quantile that a contact will occur given 2 maximally mobile participants. A value near 1 here signifies a close relationship between two individuals. A value near zero is an improbable contact
      Returns:
    • contactProbability

      public double contactProbability(double adjMobility1, double adjMobility2)
    • clone

      public Object clone()
      Overrides:
      clone in class Object