Dijkstra Visitor Concept
This concept defines the visitor interface for
dijkstra_shortest_paths()
and related algorithms. The user can create a class that matches this
interface, and then pass objects of the class into
dijkstra_shortest_paths() to augment the actions taken during
the search.
Notation
V |
A type that is a model of Dijkstra Visitor. |
|---|---|
|
An object of type |
|
A type that is a model of Graph. |
|
An object of type |
|
An object of type
|
|
An object of type
|
|
A type that is a model of Read/Write Property Map. |
|
An object of type |
|
A type that is a model of Readable Property Map. |
|
An object of type |
Valid Expressions
| Name | Expression | Return Type | Description |
|---|---|---|---|
Initialize Vertex |
|
|
This is invoked one each vertex of the graph when it is initialized. |
Examine Vertex |
|
|
This is invoked
on a vertex as it is popped from the queue. This happens immediately
before |
Examine Edge |
|
|
This is invoked on every out-edge of each vertex after it is discovered. |
Discover Vertex |
|
|
This is invoked when a vertex is encountered for the first time. |
Edge Relaxed |
|
|
Upon examination,
if the following condition holds then the edge is relaxed (its distance
is reduced), and this method is invoked. |
Edge Not Relaxed |
|
|
Upon examination, if the edge is not relaxed (see above) then this method is invoked. |
Finish Vertex |
|
|
This invoked on a vertex after all of its out edges have been added to the search tree and all of the adjacent vertices have been discovered (but before their out-edges have been examined). |