Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
EdgeArray.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
37namespace ogdf {
39
45
46public:
48
52 explicit BucketEdgeArray(const EdgeArray<int>& edgeArray) : m_pEdgeArray(&edgeArray) { }
53
55 int getBucket(const edge& e) override { return (*m_pEdgeArray)[e]; }
56};
57}
Includes declaration of graph class.
Basic declarations, included by all source files.
Bucket function for edges.
Definition EdgeArray.h:43
int getBucket(const edge &e) override
Returns bucket of edge e.
Definition EdgeArray.h:55
const EdgeArray< int > * m_pEdgeArray
Pointer to edge array.
Definition EdgeArray.h:44
BucketEdgeArray(const EdgeArray< int > &edgeArray)
Constructs a bucket function.
Definition EdgeArray.h:52
Abstract base class for bucket functions.
Definition basic.h:257
Class for the representation of edges.
Definition Graph_d.h:364
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition Graph_d.h:717
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.