|
Boost Users : |
Subject: Re: [Boost-users] [Graph] Lazy BFS
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-07-27 00:23:26
On Mon, 26 Jul 2010, Belcourt, Kenneth wrote:
> Hi,
>
> I'm looking to traverse a DAG using BFS where vertices are discovered after
> the last incident edge has been examined. That is, I want to discover
> vertices lazily rather than the current BFS behavior of discovering vertices
> eagerly (following the first incident edge). I know I can modify the BFS
> algorithm to effect this behavior but I'm wondering if anyone has figured out
> the visitor changes necessary to support this?
Would just reversing the order of the edge lists work, or is there
something more sophisticated you need?
-- Jeremiah Willcock
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