Example code從BGL:在BGL中定義了color_map的位置?
breadth_first_search(g, vertex(s, g), color_map(get(&VertexProps::color, g)).visitor(vis));
什麼是color_map
,它在哪兒定義?它在哪裏記錄?
Example code從BGL:在BGL中定義了color_map的位置?
breadth_first_search(g, vertex(s, g), color_map(get(&VertexProps::color, g)).visitor(vis));
什麼是color_map
,它在哪兒定義?它在哪裏記錄?
難道這是該庫的two bit color map嗎?
鏈接定義爲一個命名參數是很破;-) – 2011-06-09 07:48:12
@Frederik:固定它:) – 2011-06-09 07:51:22
的虎大,但爲什麼大家都拼我的名字錯誤,它並不難的是它? ;-) – 2011-06-09 07:53:36
它出現在文檔中:http://www.boost.org/doc/libs/1_46_0/libs/graph/doc/breadth_first_search.html - 您需要首先注意boost命名參數機制 – 2011-06-09 11:11:22
謝謝,足夠接近。 – Arlen 2011-06-10 22:57:14