
23 Mar
2010
23 Mar
'10
2:26 a.m.
I have declared CustomVertex and CustomEdge classes, each with a bunch of internal properties. class CustomVertex { int length; string name; bool ori; public: CustomVertex() {} ~CustomVertex() {} FlipVertex() { ori = !ori; } }; class CustomEdge { char type; int distance; bool src_ori; bool dst_ori; public: CustomEdge() {} ~CustomEdge() {} }; Tried to use bundled properties, the graph is defined as: typedef adjacency_list<vecS, vecS, directedS, CustomVertex, CustomEdge> myGraph; I want to read from a dot file (which contains all appropriate vertex, edge information) and populate the graph. I know I'm supposed to use dynamic_properties etc. Could someone show me how exactly? Thanks.