|
Boost Users : |
From: David Minor
Date: 2003-02-17 07:28:41
I'm using an edge visitor to create subgraphs. I do a simple
sub_graph = myGraph.create_subgraphs(), to create a subgraph and then
I add vertices using add_vertex(vertex,sub_graph). The vertices are
added but the corresponding edges are not. My basic typedefs are:
//////////
typedef boost::property<boost::edge_index_t, int> Tmp;
typedef boost::property<boost::edge_info_t, GES_EdgeInfo, Tmp>
GES_EdgeProperty;
typedef boost::property<boost::vertex_color_t, int> Tmp2;
typedef boost::property<boost::vertex_self_t, SYS_String, Tmp2> Tmp3;
typedef boost::property<boost::vertex_name_t, SYS_String, Tmp3>
GES_VertexProperty;
typedef boost::adjacency_list< boost::vecS, boost::vecS
,boost::directedS
,GES_VertexProperty
,GES_EdgeProperty>
GES_AdjacencyList;
typedef boost::subgraph<GES_AdjacencyList>
GES_RTGraph;
//////////
That is, the graph type is the same as the sub-graph type, which I
think is right? Does anybody have any idea why the edges aren't being
transferred to the sub-graph?
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