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

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

4. Implementation<br />

use free data slots in the edges 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 />

Edge maps are implemented by an efficient hashing method based on the internal numbering<br />

of the edges. An access operation takes expected time O(1).

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

Saved successfully!

Ooh no, something went wrong!