Package graph
Interface Edge<VertexType>
- All Known Implementing Classes:
MazeGraph.MazeEdge
public interface Edge<VertexType>
Represents a weighted, directed edge between two vertices of type `VertexType` in a graph.
-
Method Details
-
src
VertexType src()Return the vertex that this edge leaves from (the "source" vertex). -
dst
VertexType dst()Return the vertex that this edge leads to (the "destination" vertex). -
weight
double weight()Return the weight of this edge.
-