The coffman graham ranking algorithm. More...
#include <ogdf/layered/CoffmanGrahamRanking.h>
Inheritance diagram for ogdf::CoffmanGrahamRanking:Classes | |
| class | _int_set |
Public Member Functions | |
| CoffmanGrahamRanking () | |
| Creates an instance of coffman graham ranking. | |
| int | width () const |
| Get for the with. | |
| void | width (int w) |
| Set for the with. | |
Algorithm call | |
| void | call (const Graph &G, NodeArray< int > &rank) |
| Computes a node ranking of G in rank. | |
Module options | |
| void | setSubgraph (AcyclicSubgraphModule *pSubgraph) |
| Sets the module for the computation of the acyclic subgraph. | |
Public Member Functions inherited from ogdf::RankingModule | |
| RankingModule () | |
| Initializes a ranking module. | |
| virtual | ~RankingModule () |
| virtual void | call (const Graph &G, const EdgeArray< int > &, const EdgeArray< int > &, NodeArray< int > &rank) |
| void | operator() (const Graph &G, NodeArray< int > &rank) |
| Computes a node ranking of the digraph G in rank. | |
Private Member Functions | |
| void | dfs (node v) |
| 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) |
Private Attributes | |
| NodeArray< _int_set > | m_s |
| ModuleOption < AcyclicSubgraphModule > | m_subgraph |
| int | m_w |
| NodeArray< int > | mark |
| StackPure< node > * | visited |
The coffman graham ranking algorithm.
The class CoffmanGrahamRanking implements a node ranking algorithmn based on the coffman graham scheduling algorithm, which can be used as first phase in SugiyamaLayout. The aim of the algorithm is to ensure that the height of the ranking (the number of layers) is kept small.
Definition at line 69 of file CoffmanGrahamRanking.h.
| ogdf::CoffmanGrahamRanking::CoffmanGrahamRanking | ( | ) |
Creates an instance of coffman graham ranking.
Computes a node ranking of G in rank.
Implements ogdf::RankingModule.
|
private |
|
private |
|
private |
|
private |
|
inline |
Sets the module for the computation of the acyclic subgraph.
Definition at line 91 of file CoffmanGrahamRanking.h.
|
inline |
Get for the with.
Definition at line 98 of file CoffmanGrahamRanking.h.
|
inline |
Set for the with.
Definition at line 103 of file CoffmanGrahamRanking.h.
Definition at line 149 of file CoffmanGrahamRanking.h.
|
private |
Definition at line 147 of file CoffmanGrahamRanking.h.
|
private |
Definition at line 148 of file CoffmanGrahamRanking.h.
|
private |
Definition at line 152 of file CoffmanGrahamRanking.h.
Definition at line 153 of file CoffmanGrahamRanking.h.