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.

GRAPH TRANSITIVE CLOSURE(const graph& G)<br />

TRANSITIVE CLOSURE takes a directed graph G = (V, E) as argument<br />

and computes the transitive closure of G. It returns a directed<br />

graph G ′ = (V ′ , E ′ ) such that G’.inf (.) is a bijective mapping from V ′<br />

to V and (v, w) ∈ E ′ ⇔ there is a path from G’.inf (v’) to G’.inf (w’) in<br />

G. (<strong>The</strong> edge information of G ′ is undefined.) <strong>The</strong> algorithm ([40]) has<br />

running time O(|V | · |E|).<br />

GRAPH TRANSITIVE REDUCTION(const graph& G)<br />

TRANSITIVE REDUCTION takes a directed graph G = (V, E) as argument<br />

and computes the transitive reduction of G. It returns a directed<br />

graph G ′ = (V ′ , E ′ ). <strong>The</strong> function G’.inf (.) is a bijective mapping from<br />

V ′ to V . <strong>The</strong> graph G and G ′ have the same reachability relation, i.e.<br />

there is a path from v ′ to w ′ in G ′ ⇔ there is a path from G’.inf (v’)<br />

to G’.inf (w’) in G. And there is no graph with the previous property<br />

and less edges than G ′ . (<strong>The</strong> edge information of G ′ is undefined.) <strong>The</strong><br />

algorithm ([40]) has running time O(|V | · |E|).<br />

void MAKE TRANSITIVELY CLOSED(graph& G)<br />

MAKE TRANSITIVELY CLOSED transforms G into its transitive closure<br />

by adding edges.<br />

void MAKE TRANSITIVELY REDUCED(graph& G)<br />

MAKE TRANSITIVELY REDUCED transforms G into its transitive reduction<br />

by removing edges.

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

Saved successfully!

Ooh no, something went wrong!