简体   繁体   English

提升图去除边缘与filtered_graph性能

[英]boost graph removing edges vs filtered_graph performance

A single threaded boost graph that repeatedly removes and then adds same edges later seems to be faster than a multi-threaded filtered_graph that uses edge predicates to concurrently do the same on multiple filtered graphs of the same underlying graph. 单线程升压图重复删除并随后添加相同的边似乎比使用多边谓词同时对同一基础图的多个过滤图执行相同操作的多线程filtered_graph快。

Possibly, filtered_graph traverses each and every edge and applies the predicate. 可能,filtered_graph遍历每个边并应用谓词。

Is there a way to directly generate a filtered_graph without predicates ie use functions like remove_edge but actually create a filtered_graph? 有没有一种方法可以直接生成没有谓词的filtered_graph,即使用诸如remove_edge之类的函数,但实际上创建了filtered_graph?

Just use copy_graph on the filtered graph: 只需在过滤后的图形上使用copy_graph

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM