Boost图表库:使用make_reverse_graph进行编译时出错 [英] Boost Graph Library: Error while compiling with make_reverse_graph
本文介绍了Boost图表库:使用make_reverse_graph进行编译时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在使用Boost图形库的函数 make_reverse_graph
进行编译时,会出现很多错误。
I get a lot of errors when compiling while using the function make_reverse_graph
of the Boost Graph Library.
推荐答案
确保您的图形定义为 boost :: bidirectionalS
。
这意味着每个顶点都有一个其边缘的列表,这使得图的返回更有效率。
Be sure that your graph is defined as boost::bidirectionalS
.
This means that there is for each vertex a list of its in-edges, which makes the reversion of the graph much more efficient.
这篇关于Boost图表库:使用make_reverse_graph进行编译时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文