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.

EdgeIt&<br />

bool<br />

it = const EdgeIt& it2<br />

it == const EdgeIt& it2<br />

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

it.<br />

returns true if and only if it and it2 are equal, i.e. if<br />

the marked edges are equal.<br />

bool it.eol( ) returns !it.valid( ) which is true if and only if there<br />

is no successor edge left, i.e. if all edges leaving the<br />

marked node are passed (eol: end of list).<br />

bool it.valid( ) returns true if and only if end of sequence not yet<br />

passed, i.e. if there is an edge leaving the marked<br />

node that was not yet passed.<br />

leda :: edge it.get edge( ) returns the marked edge or nil if it.valid( ) returns<br />

false.<br />

const leda :: graph& it.get graph( )<br />

returns the associated graph.<br />

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

graph. If there is no successor edge, it.eol( )<br />

will be true afterwards. This method returns a reference<br />

to it.<br />

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

EdgeIt& −−it performs one step backward in the list of edges of<br />

the associated graph. If there is no predecessor edge,<br />

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

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.4 Face Iterators ( FaceIt )<br />

1. Definition<br />

a variable it of class FaceIt is a linear face iterator that iterates over the face set of a<br />

graph; the current face of an iterator object is said to be “marked” by this object.<br />

Precondition: Before using any face iterator the list of faces has to be computed by<br />

calling G.compute faces( ). Note, that any update operation invalidates this list.

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

Saved successfully!

Ooh no, something went wrong!