Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ cycle
Method
cycle
src/graph/undirected/cycle.rs:41–43 ·
view source on GitHub ↗
Returns a cycle in the graph G.
(&self)
Source
from the content-addressed store, hash-verified
39
40
/// Returns a cycle in the graph G.
41
pub fn cycle(&self) -> Option<Iter<'_, usize>> {
42
self.cycle.as_ref().map(|v| v.iter())
43
}
44
}
45
46
impl Cycle {
Callers
nothing calls this directly
Calls
1
iter
Method · 0.45
Tested by
no test coverage detected