|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
40 #define OGDF_DECL_REG_ARRAY_TYPE(v, c) RegisteredArray<QPartitioning, v, c>
43 #undef OGDF_DECL_REG_ARRAY_TYPE
51 int q_vertex_count = 0;
52 int partition_next_id = 0;
55 static inline int NO_PARTITION = -1;
58 partitioned_nodes.
init(*
this);
61 bool isQVertex(
node n)
const;
63 int getPartitionOf(
node n)
const;
67 int makeQVertex(
node n,
int p = NO_PARTITION);
69 void releaseQVertex(
node n);
91 int end()
const {
return partition_next_id; }
94 void nodeDeleted(
node v)
override;
103 partitioned_nodes.fillWithDefault();
104 partitions.fill(NO_PARTITION);
106 partition_next_id = 0;
Abstract base class for registries.
Dynamic arrays indexed with arbitrary keys.
#define OGDF_DECL_REG_ARRAY(NAME)
void edgeAdded(edge e) override
Called by watched graph after an edge has been added.
Includes declaration of graph class.
PartitionArray< List< node > > partitioned_nodes
void edgeDeleted(edge e) override
Called by watched graph just before an edge is deleted.
Manages the partitioning of Q-nodes in an instance of SyncPlan.
NodeArray< int > partitions
int maxKeyIndex() const
Returns the maximum index of all keys managed by this registry.
RegisteredArray< QPartitioning, Value, WithDefault > PartitionArray
RegisteredArray for labeling the partitions in a QPartitioning with an arbitrary Value.
bool isKeyAssociated(int key) const
Returns whether key is associated with this registry.
int calculateTableSize(int actualCount)
The default growth function for registered arrays.
Abstract Base class for graph observers.
Doubly linked lists (maintaining the length of the list).
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
int partitionCount() const
void nodeAdded(node v) override
Called by watched graph after a node has been added.
int calculateArraySize(int add) const
Returns the array size currently requested by this registry.
QPartitioning(const Graph *G)
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static int keyToIndex(int key)
Returns the index of key.
Class for the representation of edges.
Declaration of doubly linked lists and iterators.
void init(const Base *base=nullptr)
Reinitializes the array. Associates the array with the matching registry of base.
void cleared() override
Called by watched graph when its clear function is called, just before things are removed.
Class for the representation of nodes.
const List< node > & nodesInPartition(int partition) const