[BGL] Matrix as Graph - Graph Adaptor

Hi, I'm looking at using the Graph Adaptor class for Matrices but I'm not sure how to use it. Specifically, I'm confused by the macro BOOST_GRAPH_ADAPT_MATRIX_TO_GRAPH in matrix_as_graph.cpp. Does anyone have an example on how to use it? I'm more at the evaluation stage on whether to use BGL or not so I'm not familiar with other BGL functions. Any help would be appreciated. Thanks! Liz

AMDG Liao, Elizabeth wrote:
I’m looking at using the Graph Adaptor class for Matrices but I’m not sure how to use it. Specifically, I’m confused by the macro BOOST_GRAPH_ADAPT_MATRIX_TO_GRAPH in matrix_as_graph.cpp. Does anyone have an example on how to use it? I’m more at the evaluation stage on whether to use BGL or not so I’m not familiar with other BGL functions. Any help would be appreciated.
It looks like BOOST_GRAPH_ADAPT_MATRIX_TO_GRAPH is intended to work with MTL, http://www.osl.iu.edu/research/mtl/reference/html/Matrix.html In Christ, Steven Watanabe
participants (2)
-
Liao, Elizabeth
-
Steven Watanabe