utility class to select multiple nodes randomly
More...
#include <ogdf/energybased/fast_multipole_embedder/FastUtils.h>
utility class to select multiple nodes randomly
Definition at line 187 of file FastUtils.h.
◆ RandomNodeSet()
ogdf::fast_multipole_embedder::RandomNodeSet::RandomNodeSet |
( |
const Graph & |
G | ) |
|
|
inlineexplicit |
init the random node set with the given graph. takes O(n)
Definition at line 190 of file FastUtils.h.
◆ ~RandomNodeSet()
ogdf::fast_multipole_embedder::RandomNodeSet::~RandomNodeSet |
( |
| ) |
|
|
inline |
◆ allocate()
void ogdf::fast_multipole_embedder::RandomNodeSet::allocate |
( |
| ) |
|
|
inlineprivate |
◆ chooseNode()
node ogdf::fast_multipole_embedder::RandomNodeSet::chooseNode |
( |
| ) |
const |
|
inline |
chooses a node from the available nodes in O(1)
Definition at line 196 of file FastUtils.h.
◆ deallocate()
void ogdf::fast_multipole_embedder::RandomNodeSet::deallocate |
( |
| ) |
|
|
inlineprivate |
◆ isAvailable()
bool ogdf::fast_multipole_embedder::RandomNodeSet::isAvailable |
( |
node |
v | ) |
const |
|
inline |
◆ nodesLeft()
int ogdf::fast_multipole_embedder::RandomNodeSet::nodesLeft |
( |
| ) |
const |
|
inline |
◆ removeNode()
void ogdf::fast_multipole_embedder::RandomNodeSet::removeNode |
( |
node |
v | ) |
|
|
inline |
removes a node from available nodes (assumes v is available) in O(1)
Definition at line 204 of file FastUtils.h.
◆ m_array
node* ogdf::fast_multipole_embedder::RandomNodeSet::m_array |
|
private |
the set of all nodes (at the end the available nodes)
Definition at line 239 of file FastUtils.h.
◆ m_graph
const Graph& ogdf::fast_multipole_embedder::RandomNodeSet::m_graph |
|
private |
◆ m_nodeIndex
NodeArray<int> ogdf::fast_multipole_embedder::RandomNodeSet::m_nodeIndex |
|
private |
the index in the array of the nodes
Definition at line 242 of file FastUtils.h.
◆ m_numNodes
int ogdf::fast_multipole_embedder::RandomNodeSet::m_numNodes |
|
private |
◆ m_numNodesChoosen
int ogdf::fast_multipole_embedder::RandomNodeSet::m_numNodesChoosen |
|
private |
The documentation for this class was generated from the following file:
- include/ogdf/energybased/fast_multipole_embedder/FastUtils.h