MCPcopy Create free account
hub / github.com/douchuan/algorithm / size

Method size

src/graph/undirected/cc.rs:64–66  ·  view source on GitHub ↗

Returns the number of vertices in the connected component containing vertex *v*.

(&self, v: usize)

Source from the content-addressed store, hash-verified

62
63 /// Returns the number of vertices in the connected component containing vertex *v*.
64 pub fn size(&self, v: usize) -> usize {
65 self.size[self.id[v]]
66 }
67}
68
69impl CC {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected