DFS-based algorithm for computing a maximal acyclic subgraph. More...
#include <ogdf/layered/DfsAcyclicSubgraph.h>
Public Member Functions | |
virtual void | call (const Graph &G, List< edge > &arcSet) override |
Computes the set of edges arcSet , which have to be deleted in the acyclic subgraph. More... | |
void | callUML (const GraphAttributes &AG, List< edge > &arcSet) |
Call for UML graph. More... | |
Public Member Functions inherited from ogdf::AcyclicSubgraphModule | |
AcyclicSubgraphModule () | |
Initializes an acyclic subgraph module. More... | |
virtual | ~AcyclicSubgraphModule () |
Destruction. More... | |
void | callAndDelete (Graph &G) |
Makes G acyclic by removing edges. More... | |
void | callAndReverse (Graph &G) |
Makes G acyclic by reversing edges. More... | |
void | callAndReverse (Graph &G, List< edge > &reversed) |
Makes G acyclic by reversing edges. More... | |
void | operator() (const Graph &G, List< edge > &arcSet) |
Computes the set of edges arcSet which have to be removed for obtaining an acyclic subgraph of G . More... | |
Private Member Functions | |
void | dfsBackedgesHierarchies (const GraphAttributes &AG, node v, NodeArray< int > &number, NodeArray< int > &completion, int &nNumber, int &nCompletion) |
int | dfsFindHierarchies (const GraphAttributes &AG, NodeArray< int > &hierarchy, int i, node v) |
DFS-based algorithm for computing a maximal acyclic subgraph.
The algorithm simply removes all DFS-backedges and works in linear-time.
Definition at line 47 of file DfsAcyclicSubgraph.h.
|
overridevirtual |
Computes the set of edges arcSet
, which have to be deleted in the acyclic subgraph.
Implements ogdf::AcyclicSubgraphModule.
void ogdf::DfsAcyclicSubgraph::callUML | ( | const GraphAttributes & | AG, |
List< edge > & | arcSet | ||
) |
Call for UML graph.
Computes the set of edges arcSet
, which have to be deleted in the acyclic subgraph.
|
private |
|
private |