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.

OutAdjIt<br />

OutAdjIt<br />

OutAdjIt<br />

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

introduces a variable it of this class associated with G.<br />

<strong>The</strong> node is initialized by G.first node( ) and the edge by<br />

G.first adj edge(n) where n is the marked node.<br />

it(const leda :: graph& G, leda :: node n);<br />

introduces a variable it of this class marked with n and associated<br />

with G. <strong>The</strong> marked edge is initialized by G.first adj edge(n).<br />

Precondition: n is a node of G.<br />

it(const leda :: graph& G, leda :: node n, leda :: edge e);<br />

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

with G.<br />

Precondition: n is a node and e an edge of G and source(e) = n.<br />

3. Operations<br />

void it.init(const leda :: graph& G)<br />

associates it with G and marks it with n’ =<br />

G.first node( ) and G.first adj edge(n’).<br />

void it.init(const leda :: graph& G, const leda :: node& n)<br />

associates it with G and marks it with n and<br />

G.first adj edge(n).<br />

Precondition: n is a node of G.<br />

void it.init(const leda :: graph& G, const leda :: node& n, const leda :: edge& e)<br />

void it.update(leda :: edge e)<br />

associates it with G and marks it with n and e.<br />

Precondition: n is a node and e an edge of G and<br />

source(e) = n.<br />

it marks e afterwards.<br />

void it.reset( ) resets it to G.first adj edge(n) where G and n are the<br />

marked node and associated graph.<br />

void<br />

it.insert(const OutAdjIt& other)<br />

creates a new leaving edge from the marked node of<br />

it to the marked node of other. it is marked with the<br />

new edge afterwards. <strong>The</strong> marked node of it does not<br />

change.<br />

void it.del( ) deletes the marked leaving edge, i.e. it.valid( ) returns<br />

false afterwards.<br />

Precondition: it.valid( ) returns true.

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

Saved successfully!

Ooh no, something went wrong!