18 Mar
2009
18 Mar
'09
1:43 p.m.
I need to convert any bidirectional graph into an adjacency_list
, but looks like the copy constructor cannot handle it (needs the same type in input). I don't see any simple way to convert any directed graph into an adjacency_list . Is there any more-or-less-simple way to do it that I don't know? May be there is a way to copy graphs constrained not by the concrete type of the graph, but only, may be, on graph concepts? Thanks,
There's no direct conversion between *any* bidirectional graph and a directed adjancency_list. If you're talking about any bidirectional adjacency list and a directed one, you shouldn't actually need to convert them. As an alternative, you could use copy_graph. Andrew Sutton andrew.n.sutton@gmail.com