Computes Voronoi regions in an edge-weighted graph. More...
#include <ogdf/graphalg/Voronoi.h>
Public Member Functions | |
Voronoi (const Graph &G, const EdgeArray< T > &weights, const List< node > &seeds) | |
Build data structure to query Voronoi regions of edge-weighted graph G with given Voronoi seeds. More... | |
T | distance (node v) const |
Returns the distance between v and its Voronoi seed. More... | |
const Graph & | getGraph () const |
Returns a reference to the graph the Voronoi region has been computed for. More... | |
const List< node > & | getSeeds () const |
Returns a reference to the list of seeds the Voronoi region has been computed for. More... | |
const ArrayBuffer< node > & | nodesInRegion (node v) const |
Returns the list of nodes in the Voronoi region of node v . More... | |
node | predecessor (node v) const |
Returns the nearest node to v on the shortest path to its Voronoi seed. More... | |
edge | predecessorEdge (node v) const |
Returns the edge incident to v and its predecessor. Note that the predecessor of a terminal is nullptr . More... | |
node | seed (node v) const |
Returns the Voronoi seed of node v . More... | |
Protected Member Functions | |
void | computeVoronoiRegions (const Graph &G, const EdgeArray< T > &weights, const List< node > &seeds) |
Protected Attributes | |
NodeArray< T > | m_distance |
const Graph & | m_graph |
std::map< node, ArrayBuffer< node > > | m_nodeList |
NodeArray< edge > | m_predecessor |
NodeArray< node > | m_seedOfNode |
const List< node > & | m_seeds |
Computes Voronoi regions in an edge-weighted graph.
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |