Class Edge
java.lang.Object
com.thomas.graphs.Edge
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dest
Where this edge goes to -
weight
public int weightThe "cost" of going to the destination
-
-
Constructor Details
-
Edge
Creates an edge to a vertex with a set distance- Parameters:
dest- Where this edge is goingcost- how much it is going to cost to get there
-
-
Method Details
-
toString
-