Class Edge

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class Edge
    extends org.jgrapht.graph.DefaultWeightedEdge
    This class is just a wrapper class so we can add weights to the edge with a constructor. Kempton et. al. 2015 and 2018.
    Author:
    Dustin Kempton, Data Mining Lab, Georgia State University
    See Also:
    Serialized Form
    • Constructor Detail

      • Edge

        public Edge​(double weight)
        Constructor
        Parameters:
        weight - the weight the edge should have.
    • Method Detail

      • getWeight

        public double getWeight()
        Overrides:
        getWeight in class org.jgrapht.graph.DefaultWeightedEdge
        Returns:
        Returns the weight of this edge.
      • clone

        public Object clone()
        Returns:
        A copy of this edge.
      • setWeight

        public void setWeight​(double weight)
        Sets the weight of the edge.
        Parameters:
        weight - The weight to set on the edge.