【问题标题】:Cycle in undirected graph without tree edges?在没有树边的无向图中循环?
【发布时间】:2017-10-11 15:17:09
【问题描述】:

在已执行 DFS 的无向图中(为了生成 DFS 树并将每条边分类为树边或后边),图中是否存在仅由后边组成的循环,即没有树边?

【问题讨论】:

    标签: graph depth-first-search edges undirected-graph


    【解决方案1】:

    当然。以一个大集团为例。从 clique 中删除单个 DFS 树会留下大量边,因此会产生很多循环。

    【讨论】:

      猜你喜欢
      • 2020-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-17
      • 1970-01-01
      • 2012-01-01
      • 1970-01-01
      • 2011-06-05
      相关资源
      最近更新 更多