Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 C++ 中,在关系之前维护全局的最佳结构是什么。我在考虑链表数组(数组是每个进程,链表中的项目是事件)。但是很难找出不同过程之间的循环。任何人都可以建议良好的数据结构来维持全球关系吗?提前致谢。
Boost 的 图形库具有可用于检测有向图中的循环的数据结构和算法。