我正在寻找一种简单的算法来"序列化"有向图.特别是我有一组在执行顺序上具有相互依赖性的文件,我想在编译时找到正确的顺序.我知道它必须是一件相当普遍的事情 - 编译器会一直这样做 - 但我的google-fu今天一直很弱.什么是'go-to'算法?
sorting algorithm directed-graph graph-algorithm
algorithm ×1
directed-graph ×1
graph-algorithm ×1
sorting ×1