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

Method count

src/graph/undirected/dfs.rs:41–43  ·  view source on GitHub ↗

how many vertices are connected to s? if (search.count() != G.V()) Not connected

(&self)

Source from the content-addressed store, hash-verified

39 /// if (search.count() != G.V())
40 /// Not connected
41 pub fn count(&self) -> usize {
42 self.count
43 }
44}
45
46impl DepthFirstSearch {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected