Function
breadthFirstSearch
Implements a breadth-first search on a graph.
breadthFirstSearch(g, source, predecessor, distance)
Include Headers
seqan/graph_algorithms.h
Parameters
g
In-parameter:A graph.
source
In-parameter:A vertex descriptor.
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.
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
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2011/02/08 21:37:03