Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

RankingModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/basic.h>
36 #include <ogdf/basic/memory.h>
37 
38 namespace ogdf {
39 
40 
47 public:
50 
51  virtual ~RankingModule() { }
52 
62  virtual void call(const Graph& G, NodeArray<int>& rank) = 0;
63 
64  virtual void call(const Graph& G, const EdgeArray<int>& /* length */,
65  const EdgeArray<int>& /* cost */, NodeArray<int>& rank) {
66  call(G, rank);
67  }
68 
75  void operator()(const Graph& G, NodeArray<int>& rank) { call(G, rank); }
76 
78 };
79 
80 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::RankingModule::~RankingModule
virtual ~RankingModule()
Definition: RankingModule.h:51
ogdf::RankingModule
Interface of algorithms for computing a node ranking.
Definition: RankingModule.h:46
ogdf::RankingModule::RankingModule
RankingModule()
Initializes a ranking module.
Definition: RankingModule.h:49
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:92
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::RankingModule::call
virtual void call(const Graph &G, const EdgeArray< int > &, const EdgeArray< int > &, NodeArray< int > &rank)
Definition: RankingModule.h:64
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::RankingModule::operator()
void operator()(const Graph &G, NodeArray< int > &rank)
Computes a node ranking of the digraph G in rank.
Definition: RankingModule.h:75
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716