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.

list T.range search(node v, const POINT& p)<br />

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

closure of disk C with center pos[v] and having<br />

p in its boundary.<br />

list T.range search(const POINT & a, const POINT & b, const POINT & c)<br />

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

closure of the triangle (a, b, c).<br />

Precondition: a, b, and c must not be collinear.<br />

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

list T.range search parallelogram(const POINT & a, const POINT & b,<br />

const POINT & c)<br />

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

closure of the parallelogram (a, b, c, d) with d =<br />

a + (c − b).<br />

Precondition: a, b, and c must not be collinear.<br />

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

list T.range search(const POINT & a, const POINT & b)<br />

list T.minimum spanning tree( )<br />

list T.relative neighborhood graph( )<br />

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

of the rectangle with diagonal (a, b). This<br />

is a non-const operation.<br />

returns the list of edges of T that comprise a<br />

minimum spanning tree of S.<br />

returns the list of edges of T that comprise a<br />

relative neighborhood graph of S.<br />

void T.compute voronoi(GRAPH & V )<br />

Drawing Routines<br />

computes the corresponding Voronoi diagram<br />

V . Each node of V D is labeled with its defining<br />

circle. Each edge is labeled with the site lying<br />

in the face to its left.<br />

<strong>The</strong> functions in this section were designed to support the drawing of Delaunay triangulations<br />

and Voronoi diagrams.<br />

void T.draw nodes(void (∗draw node)(const POINT & ))<br />

calls draw node(pos(v)) for every node v of T .

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

Saved successfully!

Ooh no, something went wrong!