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.

ool<br />

bool<br />

Is CCW Ordered(const graph& G, const edge array& dx,<br />

const edge array& dy)<br />

checks whether the cyclic adjacency list of any node<br />

v agrees with the counter-clockwise ordering of the<br />

neighbors of v around v. <strong>The</strong> direction of edge e is<br />

given by the vector (dx(e), dy(e)).<br />

SORT EDGES(graph& G, const edge array& dx,<br />

const edge array& dy)<br />

reorders all adjacency lists such the cyclic adjacency<br />

list of any node v agrees with the counter-clockwise<br />

order of v’s neighbors around v. <strong>The</strong> direction of edge<br />

e is given by the vector (dx(e), dy(e)). <strong>The</strong> function<br />

returns true if G is a plane map after the call.

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

Saved successfully!

Ooh no, something went wrong!