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 M.use node data(const graph t& G, E x)<br />

E& M[node v] returns the variable M(v).<br />

4. Implementation<br />

use free data slots in the nodes of G (if available) for storing<br />

the entries of A. <strong>The</strong> number of additional data slots<br />

in the nodes and edges of a graph can be specified in the<br />

graph :: graph(int n slots, int e slots) constructor. <strong>The</strong> result<br />

is true if a free slot is available and false otherwise.<br />

Node maps either use free node slots or they are implemented by an efficient hashing<br />

method based on the internal numbering of the nodes or they use. In each case an access<br />

operation takes expected time O(1).

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

Saved successfully!

Ooh no, something went wrong!