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)
Create an edge between from and to with the given cost.
|
Copyright © 2021. All rights reserved.