Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

AcyclicSubgraphModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 
36 namespace ogdf {
37 
44 public:
47 
49  virtual ~AcyclicSubgraphModule() { }
50 
59  virtual void call(const Graph &G, List<edge> &arcSet) = 0;
60 
67  void operator()(const Graph &G, List<edge> &arcSet) {
68  call(G,arcSet);
69  }
70 
79  void callAndReverse(Graph &G, List<edge> &reversed);
80 
81  // makes G acyclic (except for self-loops!) by reversing edges
90  void callAndReverse(Graph &G);
91 
92  // makes G acyclic by deleting edges
99  void callAndDelete(Graph &G);
100 
102 };
103 
104 } // end namespace ogdf
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
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...
virtual ~AcyclicSubgraphModule()
Destruction.
Base class of algorithms for computing a maximal acyclic subgraph.
AcyclicSubgraphModule()
Initializes an acyclic subgraph module.
Includes declaration of graph class.
The namespace for all OGDF objects.