Lengauer Tarjan Algorithm in BGL (boost graph library)
问题 I need to create a dominator tree for a given graph. The code I have compiles and runs without errors, but the output looks exactly the same as the input. I have defined the following type for my graph (to be analyzed) typedef boost::adjacency_list<boost::listS, boost::vecS, boost::bidirectionalS, vertex_info, edge_info> Graph; and I would like to have another object containing the corresponding dominator tree. I tried the following: // dominator tree is an empty Graph object dominator_tree =