Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Trying to use subgraph
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-05-23 17:20:41

> w = G[edge].edge_weight;
> or similar.
> And when using algorithms, I was able to figure out the property map
> parameters mainly be looking at what the examples did.
> So using the above access pattern, how would one differentiate a subgraph
> with "pass-through" property access versus one with local properties?

Good question. I hadn't thought of that. Maybe something like:

w = G[global(edge)].edge_weight // or
w = G[local(edge)].edge_weight

I think I can hack something like that together.

As for default behavior... I'm leaning towards global properties, but I
suppose I could control it with a preprocessor macro.

Andrew Sutton

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