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
On 11/10/05, Slava
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
, 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
participants (2)
-
Johan Oudinet
-
Slava