Skip to main content

Module patterns

Module patterns 

Source
Expand description

Conflict-of-interest pattern catalog.

Patterns are defined as data structures, not hardcoded traversals. New patterns can be added by appending to the catalog vectors returned by cycle_patterns, path_patterns, and the hub threshold constant.

Structs§

ConflictPattern
A single detected conflict pattern.
CyclePattern
A cycle pattern: a directed cycle whose edge types match a sequence.
PathPattern
A path pattern: a directed path whose edges and (optionally) node labels match a template.
PathStep
A single step in a path pattern.

Enums§

Severity
How serious a detected conflict is considered.

Constants§

HUB_INFLUENCE_TYPES
Edge types considered “influence” edges for hub concentration.
HUB_THRESHOLD
Minimum distinct influence edge types for a hub to be flagged.

Functions§

cycle_patterns
Cycle-based conflict patterns.
path_patterns
Path-based conflict patterns.