MCPcopy Create free account
hub / github.com/ashvardanian/less_slow.cpp / remove_edge

Method remove_edge

less_slow.cpp:5688–5691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5686 }
5687
5688 void remove_edge(vertex_id_t from, vertex_id_t to) noexcept {
5689 edges_.erase(vertex_ids_t(from, to));
5690 edges_.erase(vertex_ids_t(to, from));
5691 }
5692
5693 void compact() noexcept {
5694 // The `std::map` is already a balanced BST, so no need to do anything here.

Callers 1

watts_strogatzFunction · 0.45

Calls 1

vertex_ids_tClass · 0.85

Tested by

no test coverage detected