34 namespace energybased {
49 const Graph& graph()
const;
55 double weight(
node v)
const;
58 double edgeWeight(
edge e)
const;
61 void setWeight(
node v,
double weight);
64 void setEdgeWeight(
edge e,
double weight);
67 bool isFinestLevel()
const;
70 bool isCoarsestLevel()
const;
89 GalaxyLevel* buildNextCoarserLevel(
int numLabels = 3);
95 void removeParEdgesWithWeight();
NodeArray< node > m_parent
pointer to the parent node on the coarser level
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
NodeArray< double > m_nodeWeight
the weight of the node is the sum of weights of the children
Simple implementation of the slightly modified version of Hachul by Gronemann.
Class for the representation of edges.
Class for the representation of nodes.
GalaxyLevel * m_pNextCoarser
pointer to the next coarser
GalaxyLevel * m_pNextFiner
pointer to the next finer level
EdgeArray< double > m_edgeWeight
edge weight
Includes declaration of graph class.
The namespace for all OGDF objects.
Graph * m_pGraph
the graph