Package edu.gsu.cs.dmlab.graph
Class Edge
- java.lang.Object
-
- org.jgrapht.graph.DefaultEdge
-
- org.jgrapht.graph.DefaultWeightedEdge
-
- edu.gsu.cs.dmlab.graph.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 Summary
Constructors Constructor Description Edge(double weight)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
double
getWeight()
void
setWeight(double weight)
Sets the weight of the edge.
-
-
-
Method Detail
-
getWeight
public double getWeight()
- Overrides:
getWeight
in classorg.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.
-
-