Also, I believe the vertex_max_invariant named parameter needs to be set for
the isomorphism function to work (mine doesn't seem to work without it set).
I added the necessary change to my named_params.hpp, similar to the patches
you gave, in order to set this. It seems to work fine now.
thanks,
Patrick
On 6/13/07, Patrick A. La Fratta
Thanks for your help and the fix. Also, there is a comment in the " isomorphism.hpp" file in the "match" function that says "this *HAS* to be a bug!". Does anyone know if there is a problem here that hasn't been addressed?
- Patrick
On 6/13/07, Douglas Gregor
wrote: 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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users