Open
Graph Drawing
Framework

 v.2012.07
 

RankingModule.h
Go to the documentation of this file.
1 /*
2  * $Revision: 2523 $
3  *
4  * last checkin:
5  * $Author: gutwenger $
6  * $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7  ***************************************************************/
8 
44 #ifdef _MSC_VER
45 #pragma once
46 #endif
47 
48 #ifndef OGDF_RANKING_MODULE_H
49 #define OGDF_RANKING_MODULE_H
50 
51 
52 
53 #include <ogdf/basic/Graph.h>
54 
55 
56 namespace ogdf {
57 
58 
65 public:
68 
69  virtual ~RankingModule() { }
70 
80  virtual void call(const Graph &G, NodeArray<int> &rank) = 0;
81 
82  virtual void call(const Graph &G, const EdgeArray<int> & /* length */, const EdgeArray<int> & /* cost */, NodeArray<int> &rank)
83  {
84  call(G, rank);
85  }
86 
93  void operator()(const Graph &G, NodeArray<int> &rank) {
94  call(G,rank);
95  }
96 
98 };
99 
100 
101 } // end namespace ogdf
102 
103 
104 #endif