public class Edge<T> extends Object
| 构造器和说明 |
|---|
Edge(Vertex<T> from,
Vertex<T> to)
Create a zero cost edge between from and to
|
Edge(Vertex<T> from,
Vertex<T> to,
int weight) |
Edge(Vertex<T> from,
Vertex<T> to,
String label) |
Edge(Vertex<T> from,
Vertex<T> to,
String label,
int weight)
Create an edge between from and to with the given cost.
|
public Edge(Vertex<T> from, Vertex<T> to)
from - the starting vertexto - the ending vertexCopyright © 2021. All rights reserved.