public static class Graph.Edge
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
v1
The id of one vertex connected by this edge.
|
int |
v2
The id of the other vertex connected by this edge.
|
double |
weight
The weight of edge.
|
| Constructor and Description |
|---|
Edge(int v1,
int v2,
double weight)
Constructor.
|
public final int v1
public final int v2
public double weight