假设我有一个图表,其中节点存储在排序列表中.我现在想要对这个图进行拓扑排序,同时保持拓扑顺序未定义的原始顺序.这有什么好的算法吗?
algorithm graph-algorithm
algorithm ×1
graph-algorithm ×1