V
- the graph vertex typeE
- the graph edge typepublic interface PathValidator<V,E>
KShortestPaths
- that the path is from source to target and that it does not contain
loops.Modifier and Type | Method and Description |
---|---|
boolean |
isValidPath(org.jgrapht.alg.AbstractPathElement<V,E> prevPathElement,
E edge)
Checks if an edge can be added to a previous path element.
|
boolean isValidPath(org.jgrapht.alg.AbstractPathElement<V,E> prevPathElement, E edge)
prevPathElement
- the previous path elementedge
- the edge to be added to the path.true
if edge can be added, false
otherwise.Copyright © 2016. All rights reserved.