I'd be happy to include this in the examples directory.  Just point me to the appropriate license boilerplate.

I used forward_iterator_helper because that's what the Knight's Tour example in the Boost Graph Library book uses.  If you can see any other implementation or stylistic issues, let me know.  I'd like to make this a good example.

On Fri, Jun 25, 2010 at 8:30 AM, Jeremiah Willcock <jewillco@osl.iu.edu> wrote:
On Fri, 25 Jun 2010, W.P. McNeill wrote:

Thanks.  I figured out how that I needed to put a boost namespace around the whole specialization sometime last night, and after I did everything built correctly.  The mysterious non-scalar conversion error went away. Ultimately I think the source of my confusion lay in the fact that property graph concept types are defined in property_map structures while all other graph concept types are defined in graph  traits.  I was so in the habit of adding typedefs inside my graph class I overlooked the fact that property graphs do something else.

In retrospect this is all clearly spelled out in the documentation, but if I was confused about it someone else probably will be too.  Hopefully my sample at http://github.com/wpm/Boost-Implicit-Graph-Example can prevent someone from going down the same path.

Would it be worthwhile to put your example (or a variant of it) into BGL's example directory?  To do that, you would need to license it under the Boost license, and I might change the formatting and/or naming conventions to fit BGL ones.  Also, why are you using forward_iterator_helper rather than iterator_facade?

-- Jeremiah Willcock

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users