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.

AdjIt& ++it performs one step forward in the list of incident edges<br />

of the marked node. If the formerly marked edge was<br />

a leaving edge and there is no successor edge, it is<br />

associated to G.first in edge(n) where G and n are the<br />

associated graph and node. If the formerly marked<br />

edge was an incoming edge and there is no successor<br />

edge, it.eol( ) will be true afterwards. This method<br />

returns a reference to it.<br />

Precondition: it.valid( ) returns true.<br />

AdjIt& −−it performs one step backward in the list of incident<br />

edges of the marked node. If the formerly marked<br />

edge was an incoming edge and there is no predecessor<br />

edge, it is associated to G.last adj edge(n) where<br />

G and n are the associated graph and node. If the<br />

formerly marked edge was a leaving edge and there<br />

is no successor edge, it.eol( ) will be true afterwards.<br />

This method returns a reference to it.<br />

Precondition: it.valid( ) returns true.<br />

4. Implementation<br />

Creation of an iterator and all methods take constant time.<br />

13.8 Face Circulators ( FaceCirc )<br />

1. Definition<br />

a variable fc of class FaceCirc is a face circulator that circulates through the set of edges<br />

of a face as long as the graph is embedded combinatorically correct, i.e. the graph has to<br />

be bidirected and a map (see 11.1).<br />

#include < <strong>LEDA</strong>/graph/graph iterator.h ><br />

2. Creation<br />

FaceCirc fc;<br />

introduces a variable fc of this class associated with no graph.<br />

FaceCirc fc(const leda :: graph& G);<br />

introduces a variable fc of this class associated with G. <strong>The</strong> edge<br />

is initialized to nil.<br />

FaceCirc fc(const leda :: graph& G, leda :: edge e);<br />

introduces a variable fc of this class marked with e and associated<br />

with G.<br />

Precondition: e is an edge of G.

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

Saved successfully!

Ooh no, something went wrong!