Package org.jgrapht.alg
Interface PathValidator<V,E>
-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
@Deprecated public interface PathValidator<V,E>
Deprecated.UsePathValidator
instead.May be used to provide external path validations in addition to the basic validations done byKShortestPaths
- that the path is from source to target and that it does not contain loops.- Since:
- July, 21, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
isValidPath(AbstractPathElement<V,E> prevPathElement, E edge)
Deprecated.Checks if an edge can be added to a previous path element.
-
-
-
Method Detail
-
isValidPath
boolean isValidPath(AbstractPathElement<V,E> prevPathElement, E edge)
Deprecated.Checks if an edge can be added to a previous path element.- Parameters:
prevPathElement
- the previous path elementedge
- the edge to be added to the path.- Returns:
true
if edge can be added,false
otherwise.
-
-