Class
The Edge class can represent a vertex on a weighted undirected graph or weighted directed graph. A user specifies the vertex by providing the labels of the two vertices at the two endpoints X, Y.
Functions
Variables
Variables |
X |
The label of the endpoint of the Edge |
Y |
The label of the another endpoint of the Edge |
weight |
The weight of the Edge |
|
Operators
None
|