| Function breadth_first_search Implements a breadth-first search on a graph. breadth_first_search(g, source, predecessor, distance) Parameters
g | In-parameter:A graph. Types: Graph
source | In-parameter:A vertex descriptor. Types: VertexDescriptor Remarks: The breadth-first search is started from this vertex.
predecessor | Out-parameter:A property map. Remarks: The predecessor map stores implicitly the breadth-first tree.
distance | Out-parameter:A property map. Remarks: The distance map indicates at what depth a vertex was discovered.
Return Values void. 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. Example Programs Breadth-First Search See Also depth_first_search SeqAn - Sequence Analysis Library - www.seqan.de