Boost logo

Boost Users :

From: Douglas Gregor (dgregor_at_[hidden])
Date: 2007-06-13 09:15:23


Aaron Windsor wrote:
> If you'd like, use the diff I've appended to this email to patch the
> file boost/graph/named_params.hpp. This patch just adds some necessary
> definitions so that you can actually use vertex_invariant1 and
> vertex_invariant2 as named parameters in the function, like so:
>
> MyVertexInvariant1 my_invariant1;
> MyVertexInvariant2 my_invariant2;
>
> bool are_isomorphic = isomorphism(g1,g2, isomorphism_map(my_isomorphism_map)
> .vertex_index1_map(my_vertex_index_map1)
> .vertex_index2_map(my_vertex_index_map2)
> .vertex_invariant1(my_invariant1)
> .vertex_invariant2(my_invariant2));
>
> Does anyone object if I commit this patch to HEAD and update the
> documentation for isomorphism to reflect the two separate vertex
> invariant named parameters?
>
The patch looks good. Please go ahead and commit (along with the
documentation fix!)

  - Doug


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