AC自动机,在trie树上不断走 不存在->有环-> 在trie图上不经过病毒节点走一个环 有向图判环 dfs 拓扑排序 转载于:https://www.cnblogs.com/lcan/p/9843047.html