78 int width()
const {
return m_w; }
96 m_array =
new int[m_length];
104 if ((m_length = len) == 0) {
107 m_array =
new int[m_length];
116 void insert(
int x) { m_array[--m_index] = x; }
118 bool ready()
const {
return m_index == 0; }
Declaration of interface for acyclic subgraph algorithms.
Declaration and implementation of NodeArray class.
Declaration of interface for ranking algorithms.
Base class of algorithms for computing a maximal acyclic subgraph.
int operator[](int i) const
The coffman graham ranking algorithm.
CoffmanGrahamRanking()
Creates an instance of coffman graham ranking.
void setSubgraph(AcyclicSubgraphModule *pSubgraph)
Sets the module for the computation of the acyclic subgraph.
void width(int w)
Set for the with.
int width() const
Get for the with.
std::unique_ptr< AcyclicSubgraphModule > m_subgraph
NodeArray< _int_set > m_s
void insert(node u, List< Tuple2< node, int > > &ready_nodes)
void insert(node u, List< node > &ready, const NodeArray< int > &pi)
void removeTransitiveEdges(Graph &G)
virtual void call(const Graph &G, NodeArray< int > &rank) override
Computes a node ranking of G in rank.
Data type for general directed graphs (adjacency list representation).
Doubly linked lists (maintaining the length of the list).
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
Interface of algorithms for computing a node ranking.
Tuples of two elements (2-tuples).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
Declaration and implementation of class Tuple2, Tuple3 and Tuple4.