V
- the graph vertex typeE
- the graph edge typeFloydWarshallShortestPaths
.@Deprecated public class FloydWarshallShortestPaths<V,E> extends Object
Constructor and Description |
---|
FloydWarshallShortestPaths(Graph<V,E> graph)
Deprecated.
Create a new instance of the Floyd-Warshall all-pairs shortest path algorithm.
|
Modifier and Type | Method and Description |
---|---|
double |
getDiameter()
Deprecated.
|
V |
getFirstHop(V a,
V b)
Deprecated.
Returns the first hop, i.e., the second node on the shortest path from a to b.
|
Graph<V,E> |
getGraph()
Deprecated.
|
V |
getLastHop(V a,
V b)
Deprecated.
Returns the last hop, i.e., the second to last node on the shortest path from a to b.
|
GraphPath<V,E> |
getShortestPath(V a,
V b)
Deprecated.
Get the shortest path between two vertices.
|
List<V> |
getShortestPathAsVertexList(V a,
V b)
Deprecated.
Get the shortest path between two vertices as a list of vertices.
|
List<GraphPath<V,E>> |
getShortestPaths()
Deprecated.
Get all shortest paths in the graph.
|
List<GraphPath<V,E>> |
getShortestPaths(V v)
Deprecated.
Get shortest paths from a vertex to all other vertices in the graph.
|
int |
getShortestPathsCount()
Deprecated.
|
double |
shortestDistance(V a,
V b)
Deprecated.
Get the length of a shortest path.
|
public Graph<V,E> getGraph()
public int getShortestPathsCount()
public double shortestDistance(V a, V b)
a
- first vertexb
- second vertexpublic double getDiameter()
public GraphPath<V,E> getShortestPath(V a, V b)
a
- from vertexb
- to vertexpublic List<V> getShortestPathAsVertexList(V a, V b)
a
- from vertexb
- to vertexpublic List<GraphPath<V,E>> getShortestPaths(V v)
v
- the originating vertexpublic List<GraphPath<V,E>> getShortestPaths()
public V getFirstHop(V a, V b)
a
- source vertexb
- target vertexpublic V getLastHop(V a, V b)
a
- source vertexb
- target vertexCopyright © 2017. All rights reserved.