digiKam
|
Public Member Functions | |
bool | isReachable (const Vertex &v) const |
template<class GraphType > | |
void | longestPath (const GraphType &graph, const Vertex &v) |
template<class GraphType > | |
void | shortestPath (const GraphType &graph, const Vertex &v) |
Public Attributes | |
VertexIntMap | distances |
VertexVertexMap | predecessors |
Helper class to find paths through the graph. Call one of the methods and then read the maps.
|
inline |
|
inline |
we provide a constant weight of 1
Invert the default compare method: With greater, we get the longest path
will be returned if a node is unreachable
Store distance and predecessors in QMaps, wrapped to serve as property maps
Referenced by Digikam::Graph< VertexProperties, EdgeProperties >::longestPathTouching().
|
inline |
we provide a constant weight of 1
Store distance and predecessors in QMaps, wrapped to serve as property maps
Referenced by Digikam::Graph< VertexProperties, EdgeProperties >::shortestDistancesFrom(), and Digikam::Graph< VertexProperties, EdgeProperties >::shortestPath().
VertexIntMap Digikam::Graph< VertexProperties, EdgeProperties >::Path::distances |
VertexVertexMap Digikam::Graph< VertexProperties, EdgeProperties >::Path::predecessors |