Boost logo

Boost Users :

From: Chris Russell (cdr_at_[hidden])
Date: 2003-08-18 22:51:19

Sure - that makes sense. As for the vertex indices.... Hmmm.
Theoretically... I'll have to go look at the source (creation of this
particular graph is constructed by a graph algorithm analyzing another
graph, and referencing data from a third so it's entire possible I messed it
up somewhere...) But if they were screwed up wouldn't I bomb regardless of
which version of the DFS call I made?

- Chris

----- Original Message -----
From: "Jeremy Siek" <jsiek_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.user
Sent: Monday, August 18, 2003 11:32 PM
Subject: Re: [BGL] named parameter defaults and namespace confusion

Hi Chris,

The namespaces are a red herring. If you don't explicitly supply a
color map, the default for DFS is to allocate a temporary map, not to
look into the graph for an internal color map. I think the reason I
designed it that way is that I figured it would be more common for the
user not to care about the color map, and prefer it to be taken care of
by the algorithm.

As for the memory fault... are your vertex indices in the range [0,
num_vertices(g)) ? If not that could cause a problem.


On Monday, August 18, 2003, at 10:13 PM, Chris Russell wrote:
> parameters. Specifically, I do not specify the color map in the named
> parameter list. What I expected was that the DFS would find, and use
> the
> default internal color map of the graph declared in namespace A.
> However, it
> appears that it does not and allocates a temporary color map (I assume
> the

Info: <>
Wiki: <>
Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>

Your use of Yahoo! Groups is subject to

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at