How to remove cycles in an unweighted directed graph, such that the number of edges is maximised?

前端 未结 3 1026
无人及你
无人及你 2021-02-02 16:57

Let G be an unweighted directed graph containing cycles. I\'m looking for an algorithm which finds/creates all acyclic graphs G\', composed of all vertices in G and a subset of

相关标签:
3条回答
  • This may be helpful: An Algorithm for Enumerating all Directed Spanning Trees in a Directed Graph.

    0 讨论(0)
  • 2021-02-02 16:58

    This problem is called Feedback Arc Set. Since it is NP-hard, it is unlikely that you will find a scalable fast algorithm. However, if your instances are small, then algorithms such as the one from the paper “On enumerating all minimal solutions of feedback problems” by B. Schwikowski and E. Speckenmeyer might work.

    0 讨论(0)
  • 2021-02-02 17:22

    If your goal is to remove cycle edges (breaking cycles) while preserving graph hierarchies (structures) as much as possible, this work maybe helpful: https://github.com/zhenv5/breaking_cycles_in_noisy_hierarchies

    0 讨论(0)
提交回复
热议问题