Hello, I have a graph that contains: - Vertices with 1.name 2.weight - Edges with 1.name 2.weight I couldnt figure out how to store the weights of the vertices. Is it possible to do that? if yes, then please tell me how... Thank you...
On Wed, 23 Nov 2011, Nouf M. wrote:
Hello, I have a graph that contains: - Vertices with 1.name 2.weight - Edges with 1.name 2.weight I couldnt figure out how to store the weights of the vertices. Is it possible to do that? if yes, then please tell me how...
You can use bundled properties for the vertex weights, just like you would do for edge weights. There does not appear to be a vertex weight non-bundled property, but you can use one of the similar ones if you want. -- Jeremiah Willcock
On Wed, 23 Nov 2011, Nouf M. wrote:
Hello, I have a graph that contains: - Vertices with 1.name 2.weight - Edges with 1.name 2.weight I couldnt figure out how to store the weights of the vertices. Is it possible to do that? if yes, then please tell me how... You can use bundled properties for the vertex weights, just like you would do for edge weights. There does not appear to be a vertex weight non-bundled property, but you can use one of the similar ones if you want.
In case you were looking for a simple example with bundled properties, this might help: http://programmingexamples.net/wiki/CPP/Boost/BGL/BundledProperties
participants (3)
-
Anders Wallin
-
Jeremiah Willcock
-
Nouf M.