Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

GreedyCycleRemoval.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Array.h>
35 #include <ogdf/basic/Graph.h>
36 #include <ogdf/basic/List.h>
37 #include <ogdf/basic/basic.h>
39 
40 namespace ogdf {
41 
43 
48 public:
50 
52  virtual void call(const Graph& G, List<edge>& arcSet) override;
53 
54 private:
55  void dfs(node v, const Graph& G);
56 
57  int m_min, m_max, m_counter;
58 
59  NodeArray<int> m_in, m_out, m_index;
63 };
64 
65 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::GreedyCycleRemoval
Greedy algorithm for computing a maximal acyclic subgraph.
Definition: GreedyCycleRemoval.h:47
ogdf::GreedyCycleRemoval::m_out
NodeArray< int > m_out
Definition: GreedyCycleRemoval.h:59
ogdf::GreedyCycleRemoval::m_B
Array< ListPure< node > > m_B
Definition: GreedyCycleRemoval.h:60
AcyclicSubgraphModule.h
Declaration of interface for acyclic subgraph algorithms.
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:219
ogdf::GreedyCycleRemoval::m_visited
NodeArray< bool > m_visited
Definition: GreedyCycleRemoval.h:62
ogdf::GreedyCycleRemoval::m_item
NodeArray< ListIterator< node > > m_item
Definition: GreedyCycleRemoval.h:61
ogdf::GreedyCycleRemoval::m_min
int m_min
Definition: GreedyCycleRemoval.h:57
ogdf::List< edge >
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
ogdf::GreedyCycleRemoval::GreedyCycleRemoval
GreedyCycleRemoval()
Definition: GreedyCycleRemoval.h:49
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::AcyclicSubgraphModule
Base class of algorithms for computing a maximal acyclic subgraph.
Definition: AcyclicSubgraphModule.h:47
Array.h
Declaration and implementation of Array class and Array algorithms.
List.h
Declaration of doubly linked lists and iterators.
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240