Thanks Vladimir Prus, for your reply. Please guide me how i can use this method
void transitive_closure(const Graph& g, GraphTC& tc, G_to_TC_VertexMap g_to_tc_map, VertexIndexMap index_map)
specially how i can declare and use"G_to_TC_VertexMap" & "VertexIndexMap"
Amanullah Yasin wrote:If you want to do this once, for specific A and C, there's no need to use
> Bonjour
> Dear
>
> I want to check whether there is a directed path between two given nodes (A
> and C) using Boost graph.
transitive_closure -- DFS will be fine.
The predecessor map returned by DFS will be handy for that.
> I also want to access intermediate edges to
> examine PDAG properties.
There's test case, you can check that.
> I test
>
> void transitive_closure(const Graph& g, GraphTC& tc) method. But i
> want to check between two given nodes.
>
>
> Now i want to ask you
>
> -
>
>
> void transitive_closure(const Graph& g, GraphTC& tc,
>
>
>
> G_to_TC_VertexMap g_to_tc_map, VertexIndexMap index_map)
>
> In the above method, how i can declare
>
>
> G_to_TC_VertexMap g_to_tc_map, VertexIndexMap index_map?
>
> http://www.boost.org/doc/libs/1_39_0/libs/graph/doc/transitive_closure.html
> - How i can examine the intermediate edges? or is there any other easy
> way?
This information is not returned by transitive_closure algorithm; I cannot
immediately say if it can be modified to report that in any form.
- Volodya
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users