
Hello everyone, I'm starting to make use of the BGL in one of my projects. It was learnt from the documentation that there were basically 2 forms of representations of a graph: - adjacency-list, and - adjacency-matrix The latter is normally more suitable for denser graphs. My question is, Is ther any function that can shift the graph from between these two forms of data structure? Thanks Max

--- Wang Weiwei wrote:
Hello everyone,
Hello.
I'm starting to make use of the BGL in one of my projects. It was learnt from the documentation that there were basically 2 forms of representations of a graph: - adjacency-list, and - adjacency-matrix The latter is normally more suitable for denser graphs.
My question is, Is ther any function that can shift the graph from between these two forms of data structure?
Try boost::copy_graph. <http://www.boost.org/libs/graph/doc/copy_graph.html> HTH, Cromwell D. Enage __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (2)
-
Cromwell Enage
-
Wang Weiwei