Boost logo

Boost Users :

Subject: Re: [Boost-users] [graph] ColorMap
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-04-28 07:48:03


> 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_at_[hidden]



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net