How to remove cycles in an unweighted directed graph, such that the number of edges is maximised?
问题 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 edges of G, just small enough to make G' acyclic. More formal: The desired algorithm consumes G and creates a set of acyclic graphs S, where each graph G' in S satisfies following properties: G' contains all vertices of G. G' contains a subset of edges of G, such that G' is acyclic. The number of edges of G' is maximised