Boost logo

Boost Users :

From: Johan Oudinet (johan.oudinet_at_[hidden])
Date: 2005-11-10 19:55:51


On 11/10/05, Slava <slaks2005_at_[hidden]> wrote:
>
> Say, i have the following structure for edge bundle properties
>
> struct EdgeProperty
> {
> int edge_type;
> }
>
> and i can add parallel edges, that is between vertices u and v cab be several
> edges with bundle property EdgeProperty with different edge_types.
>
> the first question how can i use edge(u,v,graph) function if it returns
> std::pair <edge_descriptor,bool>, only one descriptor? but i have several
> descriptors between two vertices.

use out_edges(u, g) or/and in_edges(v, g) if you want all edge between u and v

>
> second, how to change the edge_type provided that i got edge_descriptor from
> edge(u,v,graph)

with a property map: get(&EdgeProperty::edge_type, g)
or access directly: g[e].edge_type

But we can find these answere in the boost documentation...
>
> Thanks.
>

Welcome.

--
Johan

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