Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Knight's Tour Example
From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2009-10-19 11:53:46


Hi Brian,

On Oct 18, 2009, at 11:17 PM, Brian Troutwine wrote:

> The Knight's Tour Example given in Siek, Lee and Lumsdaine's book on
> the BGL will not compile due to a cyclical dependency between
> knight_adjacency_iterator and
> knights_tour_graph. Would someone help me to resolve this? This is the
> only implicit graph example given in the text and I would very much
> like to learn from it.
>
> The text does not give a complete program, only a subset. I was
> unable to find a complete listing anywhere and have attached a version
> typed by myself to this email.

If you download Boost, in this directory, boost/libs/graph/example,
you'll find knights-tour.cpp. This may be what you're looking for.

-- Noel


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