MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / dot

Method dot

src/detector/lock/mod.rs:936–941  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

934 .take(MAX_PATH_NUM)
935 .collect::<Vec<_>>();
936 for path in cycle_paths {
937 // `path` forms a cycle, where adjacent nodes are directly connected and last_node connects to first_node.
938 // Different `path`s beginning with different nodes may denote the same cycle if their edges are the same.
939 // Thus we use `edge_sets` to deduplicate the cycle paths.
940 let set = path
941 .iter()
942 .zip(path.iter().skip(1).chain(path.first()))
943 .map(|(a, b)| (*a, *b))
944 .collect::<FxHashSet<_>>();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected