public abstract class ShortestPath extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ShortestPath.BellmanFord |
static class |
ShortestPath.Dijkstra |
protected static class |
ShortestPath.Node |
static class |
ShortestPath.Result |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ShortestPath.Node |
node |
protected Map<ShortestPath,Integer> |
nodes |
protected ShortestPath |
prev |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ShortestPath(String name,
int size) |
protected ShortestPath.Node node
protected Map<ShortestPath,Integer> nodes
protected ShortestPath prev
protected ShortestPath(String name, int size)
public final ShortestPath add(ShortestPath optimal, int weight)
public final ShortestPath.Result go(ShortestPath des)
protected abstract void update()
public final void reset()
Copyright © 2022. All rights reserved.