
28 Apr
2009
28 Apr
'09
11:48 a.m.
Please, help me to declare correctly the ColorMap as the 3-rd parameter of depth_first_search function. Documentation does not explain it clearly.
It is often easier to use the named parameter versions of these algorithms. Calling DFS in this way may be written as: depth_first_search(g, visitor(vis). color_map(colors)); Parameters are "dot-constructed" using functions that name the variables. Documentation for each algorithm gives the names of functions that can be used to assemble named parameters. Andrew Sutton andrew.n.sutton@gmail.com