Package org.drip.graph.shortestpath
Class AugmentedVertex
java.lang.Object
org.drip.graph.shortestpath.AugmentedVertex
public class AugmentedVertex
extends java.lang.Object
AugmentedVertex contains the Augmentations of a Vertex during a Shortest Path Algorithm. The
References are:
- Dijkstra, E. W. (1959): A Note on Two Problems in Connection with Graphs Numerische Mathematik 1 269-271
- Felner, A. (2011): Position Paper: Dijkstra’s Algorithm versus Uniform Cost Search or a Case against Dijkstra’s Algorithm Proceedings of the 4th International Symposium on Combinatorial Search 47-51
- Mehlhorn, K. W., and P. Sanders (2008): Algorithms and Data Structures: The Basic Toolbox Springer
- Russell, S., and P. Norvig (2009): Artificial Intelligence: A Modern Approach 3rd Edition Prentice Hall
- Wikipedia (2019): Dijkstra's Algorithm https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
- Module = Computational Core Module
- Library = Graph Algorithm Library
- Project = Graph Optimization and Tree Construction Algorithms
- Package = Shortest Path Generation Algorithm Family
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description AugmentedVertex(double gScore, double hScore)
AugmentedVertex Constructor -
Method Summary
Modifier and Type Method Description double
fScore()
Retrieve the Vertex Path F Scoredouble
gScore()
Retrieve the Vertex Path G Scoredouble
hScore()
Retrieve the Vertex Path H Scorestatic AugmentedVertex
NonHeuristic()
Generate a Non-heuristic Instance of AugmentedVertexEdge
precedingEdge()
Retrieve the Preceding Edgejava.lang.String
precedingVertexName()
Retrieve the Preceding Vertex Nameboolean
processed()
Indicate if the Vertex has been Processedboolean
setPrecedingEdge(Edge precedingEdge)
Set the Preceding Edge in the Pathboolean
setProcessed(boolean processed)
Set the Vertex Processing Statusboolean
updateGScore(double gScore)
Update the Vertex Path G ScoreMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AugmentedVertex
public AugmentedVertex(double gScore, double hScore) throws java.lang.ExceptionAugmentedVertex Constructor- Parameters:
gScore
- G ScorehScore
- H Score- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
NonHeuristic
Generate a Non-heuristic Instance of AugmentedVertex- Returns:
- Non-heuristic Instance of AugmentedVertex
-
precedingEdge
Retrieve the Preceding Edge- Returns:
- The Preceding Edge
-
processed
public boolean processed()Indicate if the Vertex has been Processed- Returns:
- TRUE - The Vertex has been Processed
-
gScore
public double gScore()Retrieve the Vertex Path G Score- Returns:
- The Vertex Path G Score
-
hScore
public double hScore()Retrieve the Vertex Path H Score- Returns:
- The Vertex Path H Score
-
fScore
public double fScore()Retrieve the Vertex Path F Score- Returns:
- The Vertex Path F Score
-
setPrecedingEdge
Set the Preceding Edge in the Path- Parameters:
precedingEdge
- The Preceding Edge in the Path- Returns:
- TRUE - The Preceding Edge in the Path successfully set
-
setProcessed
public boolean setProcessed(boolean processed)Set the Vertex Processing Status- Parameters:
processed
- The Vertex Processing Status- Returns:
- TRUE - The Vertex Processing Status successfully set
-
updateGScore
public boolean updateGScore(double gScore)Update the Vertex Path G Score- Parameters:
gScore
- The Vertex Path G Score- Returns:
- TRUE - The Vertex Path G Score successfully updated
-
precedingVertexName
public java.lang.String precedingVertexName()Retrieve the Preceding Vertex Name- Returns:
- The Preceding Vertex Name
-