[BGL] BGL named parameters - how to proceed?

Hello all, I am writing documentation for my implementation of the Stoer–Wagner min-cut algorithm. Attached is an HTML file of what I have so far, which also outlines how I would like the interface of `stoer_wagner_mincut` using named parameters to be. How do I proceed in adding support for BGL named parameters `weight_map`, `parity_map`, `vertex_index_map`, `assignment_map`, `index_in_heap_map`, and `wA_map`? I have looked through sources of other BGL algorithms and am not sure how the named parameters functionality works, let alone how to add it to my code. Daniel

On Fri, 2 Jul 2010, Daniel Trebbien wrote:
On 2010-07-01, Daniel Trebbien <dtrebbien@gmail.com> wrote:
How do I proceed in adding support for BGL named parameters
I think that I am starting to figure it out. I'll play around further and ask more specific questions if I get stuck.
Sorry I didn't reply to you yesterday. I am willing to answer any questions. You might want to look at newer parts of BGL to see good examples of named parameters. Something like <boost/graph/gursoy_atun_layout.hpp> (look at the end of the file) has a simple example of named parameters. Note that you should try to avoid creating new parameter names since those have to be in BGL itself. If you need one, though, I can add it for you relatively easily. -- Jeremiah Willcock
participants (2)
-
Daniel Trebbien
-
Jeremiah Willcock