Package org.drip.graph.core
Class Path
java.lang.Object
org.drip.graph.core.Path
public class Path
extends java.lang.Object
Path contains a contiguous Series of Edges representing a Path from a Source to a Destination. 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
-
Method Summary
Modifier and Type Method Description java.lang.String
destinationVertexName()
Retrieve the Destination Vertex Namejava.util.List<Edge>
edgeList()
Retrieve the Contiguous List of Edgesjava.lang.String
sourceVertexName()
Retrieve the Source Vertex Namedouble
totalLength()
Retrieve the Total Length of the Pathjava.util.List<java.lang.String>
vertexList()
Generate the List of Path Vertex NamesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Path
Path Constructor- Parameters:
edgeList
- Contiguous List of Edges- Throws:
java.lang.Exception
- Thrown if the Input is not Valid
-
-
Method Details
-
sourceVertexName
public java.lang.String sourceVertexName()Retrieve the Source Vertex Name- Returns:
- The Source Vertex Name
-
destinationVertexName
public java.lang.String destinationVertexName()Retrieve the Destination Vertex Name- Returns:
- The Destination Vertex Name
-
edgeList
Retrieve the Contiguous List of Edges- Returns:
- The Contiguous List of Edges
-
vertexList
public java.util.List<java.lang.String> vertexList()Generate the List of Path Vertex Names- Returns:
- List of Path Vertex Names
-
totalLength
public double totalLength()Retrieve the Total Length of the Path- Returns:
- Total Length of the Path
-