MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / DecrementalConnectivity

Class DecrementalConnectivity

src/graph/decremental_connectivity.rs:12–18  ·  view source on GitHub ↗

A data-structure that, given a forest, allows dynamic-connectivity queries. Meaning deletion of an edge (u,v) and checking whether two vertecies are still connected. # Complexity The preprocessing phase runs in O(n) time, where n is the number of vertecies in the forest. Deletion runs in O(log n) and checking for connectivity runs in O(1) time. # Sources used Wikipedia as reference: <https://en.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected