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

Method count

src/graph/undirected/cc.rs:53–55  ·  view source on GitHub ↗

number of connected components

(&self)

Source from the content-addressed store, hash-verified

51
52 /// number of connected components
53 pub fn count(&self) -> usize {
54 self.count
55 }
56
57 /// component identifier for v
58 /// ( between 0 and count()-1 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected