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.

const list& G.all faces( ) returns the list of all faces of G.<br />

list G.adj faces(node v)<br />

list G.adj nodes(face f)<br />

list G.adj edges(face)<br />

returns the list of all faces of G adjacent to node v<br />

in counter-clockwise order.<br />

returns the list of all nodes of G adjacent to face f<br />

in counter-clockwise order.<br />

returns the list of all edges of G bounding face f in<br />

counter-clockwise order.<br />

int G.size(face f) returns the number of edges bounding face f.<br />

edge G.first face edge(face f) returns the first edge of face f in G.<br />

edge G.split face(edge e1 , edge e2 )<br />

inserts the edge e = (source(e 1 ), source(e 2 )) and its<br />

reversal into G and returns e.<br />

Precondition: e 1 and e 2 are bounding the same face<br />

F .<br />

<strong>The</strong> operation splits F into two new faces.<br />

face G.join faces(edge e) deletes edge e and its reversal r and updates the<br />

list of faces accordingly. <strong>The</strong> function returns a face<br />

that is affected by the operations (see the <strong>LEDA</strong><br />

book for details).<br />

void G.make planar map( ) makes G a planar map by reordering the edges such<br />

that for every node v the ordering of the edges in<br />

the adjacency list of v corresponds to the counterclockwise<br />

ordering of these edges around v for some<br />

planar embedding of G and constructs the list of<br />

faces.<br />

Precondition: G is a planar bidirected graph (map).<br />

list G.triangulate planar map( )<br />

triangulates planar map G and recomputes its list<br />

of faces<br />

e) Operations for undirected graph

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

Saved successfully!

Ooh no, something went wrong!