Boost Users :
Subject: [Boost-users] [BGL] vertex, edge, and face properties of graph?
From: Anders Wallin (anders.e.e.wallin_at_[hidden])
Date: 2010-12-07 15:22:10
I'm implementing a half-edge data structure(*) based on adjacency_list.
I'm storing vertex and edge properties as bundled properties (classes
VertProps and EdgeProps), and can read/write them conveniently with
graph[vertexDescriptor].vertProp_a = 2
x = graph[edgeDescriptor].edgeProp_b
I also need to keep track of the faces of the planar graph, and I'm
wondering if there's a built-in way of doing this that would allow me
to read/write face-properties via the same syntax:
Could I derive my half-edge-class from adjacency_list, store and
update a property-map for face-data, and provide a new overload for
operator that takes a faceDescriptor type? or is there a better way?
any examples available?
(*) see e.g. http://www.holmes3d.net/graphics/dcel/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net