Search code examples
boostdocumentationboost-graph

Error in BGL documentation?


In the documentation of the algorithm isomorphism of the Boost Graph Library, it is stated that the named parameter vertex_invariant1 and vertex_invariant2 take a binary function as argument. However, the default value for these parameters is degree_vertex_invariant, which is a unary function object, according to the source.

Am I missing something, or the documentation is wrong?


Solution

  • function_requires< AdaptableUnaryFunctionConcept<Invariant1, size_type, vertex1_t> >();
    

    and

    invariant1(kp1) == invariant2(u)
    

    So yeah, I think the documentation is wrong. You should submit this to the mailing list IMO.