Modifying vertex properties in a Boost::Graph

前端 未结 5 1854
执念已碎
执念已碎 2020-12-04 09:40

I am trying to figure out how to use boost::graph to store some information. However, there is information I want tied to each vertex. Staring at the documentation for the l

5条回答
  •  無奈伤痛
    2020-12-04 09:50

    I found the examples pretty useful. On windows it will be in your \Program Files\boost\boost_1_38\libs\graph\example directory.

    kevin_bacon2.cpp uses vertex properties to store the names of actors.

    Your vertex and edge properties can be stored in regular structs or classes.

提交回复
热议问题