Function
breadthFirstSearch
Implements a breadth-first search on a graph.
Include Headers
seqan/graph_algorithms.h
Parameters
In-parameter:A graph. | |
In-parameter:A vertex descriptor. Types: VertexDescriptor Remarks: The breadth-first search is started from this vertex. | |
Out-parameter:A property map. Remarks: The predecessor map stores implicitly the breadth-first tree. | |
Out-parameter:A property map. Remarks: The distance map indicates at what depth a vertex was discovered. |
Remarks
Breadth-first search computes the distance from source to all reachable
vertices. It also produces a breath-first tree where each node has a predecessor / parent.
Return Values
void.
Example Programs
See Also
SeqAn - Sequence Analysis Library - www.seqan.de