Skip to main content

Module detect

Module detect 

Source
Expand description

Conflict-of-interest detection algorithms.

Three detection strategies:

  1. Cycle detection – enumerate directed simple cycles and match edge-type sequences against CyclePatterns.
  2. Path detection – constrained DFS from every node, matching edge types and node labels against PathPatterns.
  3. Hub detection – for each Actor→Institution pair, count distinct “influence” edge types and flag when the count exceeds HUB_THRESHOLD.

Structs§

DetectOpts
Options controlling detection behaviour.

Functions§

detect_conflicts
Run all detection algorithms on the given subgraph.