Boost Users :
Subject: [Boost-users] BGL Properties
From: David Doria (daviddoria_at_[hidden])
Date: 2011-01-27 08:23:45
I have two questions:
1) I am trying to iterate through the edges of a graph and output
their edge weights. I am confused though. I know how to output the
"edges", but they are actually just a (vertex, vertex) pair which
defines the edge. So do I index *edgePair.first into the EdgeWeightMap
to get the weight of the edge starting from vertex *edgePair.first? Or
how else would I get the weight associated with a particular edge?
2) I have created a struct, and used it as a template parameter to
adjacency_list. However, when I try to add_edge(vertex1, vertex2,
property, graph) , the compiler complains "no matching function call".
Can anyone see where I've gone wrong?
Any suggestions on either of these?
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