
19 Feb
2012
19 Feb
'12
9:17 p.m.
On Sun, 19 Feb 2012, coolhead.pranay@gmail.com wrote:
Changing listS to vecS worked. Is there a specific reason why listS wont work ?
listS produces a graph whose vertex descriptors are not integers, and the property maps created in algorithms are vectors that need integer indices. The algorithms thus need a vertex->integer map (called vertex_index_map) that you can either pass into each algorithm or have as a property of the graph. Graphs that have vecS as vertex container create this map automatically; for listS or setS, you need to create it yourself. -- Jeremiah Willcock