
25 Jan
2012
25 Jan
'12
7:49 p.m.
On Wed, 25 Jan 2012, David Doria wrote:
I am trying to use d_ary_heap_indirect. I was able to create an object of the queue, but I can't push a vertex into it. Here is what I tried:
http://programmingexamples.net/wiki/CPP/Boost/BGL/d_ary_heap_indirect
I get a "no match for operator[]" error on the last line (the push()).
Can anyone see what is wrong with that example?
It looks (from the comments for d_ary_heap_indirect) that IndexInHeapMap needs to map from values (here, vertices) to indices, and so you probably need to use GridIndexMapType to create the IndexInHeapMap like you do for PriorityMapType. -- Jeremiah Willcock