Class ShortestPathResult<V,W>
java.lang.Object
org.episteme.core.mathematics.discrete.ShortestPathResult<V,W>
Result of a shortest path computation.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()booleanbooleanhasPath()static <V,W> ShortestPathResult <V, W> negativeCycle(V source, V target) Creates a negative cycle result.static <V,W> ShortestPathResult <V, W> noPath(V source, V target) Creates a no-path result (unreachable).toString()static <V,W> ShortestPathResult <V, W> Creates a successful path result.
-
Method Details
-
withPath
Creates a successful path result. -
noPath
Creates a no-path result (unreachable). -
negativeCycle
Creates a negative cycle result. -
getSource
-
getTarget
-
getDistance
-
getPath
-
hasPath
public boolean hasPath() -
hasNegativeCycle
public boolean hasNegativeCycle() -
toString
-