public class FloydWarshall<Q> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FloydWarshall.State<W> |
| Constructor and Description |
|---|
FloydWarshall(FloydWarshall.State<Q> state) |
| Modifier and Type | Method and Description |
|---|---|
static <W> FloydWarshall<W> |
create(Collection<DefaultWeightedEdge<W>> collection) |
void |
execute() |
Q |
findData(Integer index) |
double |
get(int row,
int column) |
double |
get(Q from,
Q to) |
double[][] |
getCostMatrix() |
FloydWarshall.State<Q> |
getState() |
List<DefaultWeightedEdge<Q>> |
toList() |
public FloydWarshall(FloydWarshall.State<Q> state)
state - public static <W> FloydWarshall<W> create(Collection<DefaultWeightedEdge<W>> collection)
W - collection - public void execute()
public List<DefaultWeightedEdge<Q>> toList()
public double get(int row,
int column)
row - column - public double[][] getCostMatrix()
public FloydWarshall.State<Q> getState()
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.