Open
Graph Drawing
Framework
v.2012.07
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
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
64
class
OGDF_EXPORT
RankingModule
{
65
public
:
67
RankingModule
() { }
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
97
OGDF_MALLOC_NEW_DELETE
98
};
99
100
101
}
// end namespace ogdf
102
103
104
#endif
ogdf
module
RankingModule.h
© 1999-2012 by
TU Dortmund
,
University of Jena
,
University of Cologne
,
University of Sydney
,
oreas GmbH