Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

RankingModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 
36 
37 namespace ogdf {
38 
39 
46 public:
49 
50  virtual ~RankingModule() { }
51 
61  virtual void call(const Graph &G, NodeArray<int> &rank) = 0;
62 
63  virtual void call(const Graph &G, const EdgeArray<int> & /* length */, const EdgeArray<int> & /* cost */, NodeArray<int> &rank)
64  {
65  call(G, rank);
66  }
67 
74  void operator()(const Graph &G, NodeArray<int> &rank) {
75  call(G,rank);
76  }
77 
79 };
80 
81 }
RankingModule()
Initializes a ranking module.
Definition: RankingModule.h:48
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
#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
virtual void call(const Graph &G, const EdgeArray< int > &, const EdgeArray< int > &, NodeArray< int > &rank)
Definition: RankingModule.h:63
Includes declaration of graph class.
void operator()(const Graph &G, NodeArray< int > &rank)
Computes a node ranking of the digraph G in rank.
Definition: RankingModule.h:74
virtual ~RankingModule()
Definition: RankingModule.h:50
The namespace for all OGDF objects.
Interface of algorithms for computing a node ranking.
Definition: RankingModule.h:45