是从双向图DAG构造的单向图吗?

问题描述 投票:0回答:1

bi-directional graph to uni directional graph

对于上图。

for evert vertex:
   remove back edge from children to it.

它认为这将始终导致DAG,但我无法证明这一点。是否有任何证据或有人可以提供相反的论点?

algorithm graph graph-theory graph-algorithm directed-acyclic-graphs
1个回答
0
投票

根据this stackoverflow答案,顶点应具有总顺序。

因为顶点在列表中(上述算法),等效于总排序。

因此,它将始终形成DAG。

© www.soinside.com 2019 - 2024. All rights reserved.