> Hello All,
>
> ????? I have a Graph with 3 children (sub graphs). After I filter
> certain edges of the main graph, I can't access the children. Is there
> any turn around to work this.
>>What do you mean "children"? How are they represented by properties.
typedef subgraph< adjacency_list<vecS, vecS, undirectedS,
Vertexp, property< edge_index_t, unsigned int, Edgep > > > Graph;
This is the property of every graph even the main graph and children.
I am creating children like this:
Graph g; // main graph
//graph children
Graph& g1=g.create_subgraph();
Graph& g2=g.create_subgraph();
Graph& g3=g.create_subgraph();
> I want some edges to be filtered from the total graph, but still the
> filtered graph should retain its original children (with filtered edges
> ofcourse). Any information on this would be great help to me.
That is the way that properties are supposed to work in filtered_graphs.
When I filter these graphs using the predicate, I can access the edges and vertices (as if it is a whole single graph) from filtered graph. But somehow filtered graph is forgetting that it is made of 3 subgraphs, i.e, I cannot access children of filtered graph . For example consider G is the filtered graph, I cannot access children through iterators.
tie(c1,c2)= G.children();
-- Jeremiah Willcock
------------------------------
--
Regards,
Giridhar