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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

void SWEEP SEGMENTS(const list& L,<br />

GRAPH & G,<br />

bool embed = true)<br />

takes as input a list L of r circle segments and computes<br />

the planar graph G induced by the segments in<br />

L. <strong>The</strong> nodes of G are all endpoints and all proper<br />

intersection points of segments in L. <strong>The</strong> edges of G<br />

are the maximal relatively open subsegments of segments<br />

in L that contain no node of G. <strong>The</strong> edges<br />

are directed as the corresponding segments, if embed<br />

is false. Otherwise, the corresponding planar map is<br />

computed. Note that for each edge e G[e] is the input<br />

segment containing e.<br />

<strong>The</strong> algorithm (a variant of [11]) runs in time O((n +<br />

s) log n) + m), where n is the number of segments, s<br />

is the number of vertices of the graph G, and m is the<br />

number of edges of G. If L contains no overlapping<br />

segments then m = O(n + s).

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

Saved successfully!

Ooh no, something went wrong!