31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

node<br />

T.lookup(POINT p, const list& loc start)<br />

returns lookup(p, e) with e in loc start. If<br />

loc start is empty, we return lookup(p, NULL).<br />

<strong>The</strong> operation tries to choose a good starting<br />

edge for the lookup operation from loc start.<br />

Precondition: All edges in loc start must be<br />

edges of T .<br />

node T.insert(POINT p) inserts point p into T and returns the corresponding<br />

node. More precisely, if there is already<br />

a node v in T positioned at p (i.e., pos(v)<br />

is equal to p) then pos(v) is changed to p (i.e.,<br />

pos(v) is made identical to p) and if there is no<br />

such node then a new node v with pos(v) = p<br />

is added to T . In either case, v is returned.<br />

void T.del(node v) removes the node v, i.e., makes T a Delaunay<br />

triangulation for S \ {pos(v)}.<br />

void T.del(POINT p) removes the node p, i.e., makes T a Delaunay<br />

triangulation for S \ p.<br />

node T.nearest neighbor(POINT p)<br />

node T.nearest neighbor(node w)<br />

list T.nearest neighbors(POINT p, int k)<br />

list T.nearest neighbors(node w, int k)<br />

list T.range search(const CIRCLE& C)<br />

computes a node v of T that is closest to p, i.e.,<br />

dist(p, pos(v)) = min{ dist(p, pos(u)) | u ∈ T }.<br />

This is a non-const operation.<br />

computes a node v of T that is closest<br />

to p = T [w], i.e., dist(p, pos(v)) =<br />

min{ dist(p, pos(u)) | u ∈ T }.<br />

returns the k nearest neighbors of p, i.e., a list<br />

of the min(k, |S|) nodes of T closest to p. <strong>The</strong><br />

list is ordered by distance from p. This is a<br />

non-const operation.<br />

returns the k nearest neighbors of p = T [w], i.e.,<br />

a list of the min(k, |S|) nodes of T closest to p.<br />

<strong>The</strong> list is ordered by distance from p.<br />

returns the list of all nodes contained in the<br />

closure of disk C.<br />

Precondition: C must be a proper circle (not a<br />

straight line). This is a non-const operation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!