org.javanetworkanalyzer.alg
Class DijkstraForAccessibility<E extends EdgeSPT>
java.lang.Object
org.javanetworkanalyzer.alg.GraphSearchAlgorithm<V,E>
org.javanetworkanalyzer.alg.Dijkstra<VAccess,E>
org.javanetworkanalyzer.alg.DijkstraForAccessibility<E>
- All Implemented Interfaces:
- TraversalAlg<VAccess,E>
public class DijkstraForAccessibility<E extends EdgeSPT>
- extends Dijkstra<VAccess,E>
An implementation of Dijkstra's algorithm which can be used to calculate, for
each vertex, the (distance to the) closest destination among several possible
destinations in an AccessibilityAnalyzer.
- Author:
- Adam Gouge
| Methods inherited from class org.javanetworkanalyzer.alg.Dijkstra |
calculate, calculate, init, manyToMany, manyToOne, multipleShortestPathUpdate, oneToMany, oneToOne, preRelaxStep, reconstructTraversalGraph, relax |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DijkstraForAccessibility
public DijkstraForAccessibility(org.jgrapht.Graph<VAccess,E> graph)
- Constructor: sets the graph.
- Parameters:
graph - Graph
shortestPathSoFarUpdate
protected void shortestPathSoFarUpdate(VAccess startNode,
VAccess u,
VAccess v,
Double uvWeight,
E e,
PriorityQueue<VAccess> queue)
- Updates the distance to the neighbor and updates the distance to the
closest destination if necessary.
- Overrides:
shortestPathSoFarUpdate in class Dijkstra<VAccess,E extends EdgeSPT>
- Parameters:
u - Vertex uv - Vertex vuvWeight - w(u,v)e - Edge equeue - Queue
Copyright © 2014. All Rights Reserved.