pub struct ShortCycleParticipation { /* private fields */ }Expand description
Short cycle participation kernel.
Detects participation in 2-4 hop cycles. Critical for AML:
- Triangles (3-cycles) indicate layering patterns
- Squares (4-cycles) indicate organized money laundering
Implementations§
Source§impl ShortCycleParticipation
impl ShortCycleParticipation
Sourcepub fn detect_2_cycles(graph: &CsrGraph) -> Vec<u32>
pub fn detect_2_cycles(graph: &CsrGraph) -> Vec<u32>
Detect 2-cycles (reciprocal edges) for all nodes.
Sourcepub fn detect_3_cycles(graph: &CsrGraph) -> Vec<u32>
pub fn detect_3_cycles(graph: &CsrGraph) -> Vec<u32>
Detect 3-cycles (triangles) for all nodes.
This is the KEY AML INDICATOR for layering detection.
Sourcepub fn detect_4_cycles(graph: &CsrGraph) -> Vec<u32>
pub fn detect_4_cycles(graph: &CsrGraph) -> Vec<u32>
Detect 4-cycles (squares) for all nodes.
This is the CRITICAL AML INDICATOR for organized laundering.
Sourcepub fn compute_all(graph: &CsrGraph) -> Vec<CycleParticipationResult>
pub fn compute_all(graph: &CsrGraph) -> Vec<CycleParticipationResult>
Compute full cycle participation for all nodes.
Sourcepub fn find_high_risk_nodes(graph: &CsrGraph) -> Vec<CycleParticipationResult>
pub fn find_high_risk_nodes(graph: &CsrGraph) -> Vec<CycleParticipationResult>
Find high-risk nodes based on cycle participation.
Sourcepub fn find_4_cycle_nodes(graph: &CsrGraph) -> Vec<CycleParticipationResult>
pub fn find_4_cycle_nodes(graph: &CsrGraph) -> Vec<CycleParticipationResult>
Find nodes with any 4-cycle participation.
Sourcepub fn count_triangles(graph: &CsrGraph) -> u64
pub fn count_triangles(graph: &CsrGraph) -> u64
Count total triangles in the graph.
Trait Implementations§
Source§impl Clone for ShortCycleParticipation
impl Clone for ShortCycleParticipation
Source§fn clone(&self) -> ShortCycleParticipation
fn clone(&self) -> ShortCycleParticipation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortCycleParticipation
impl Debug for ShortCycleParticipation
Source§impl Default for ShortCycleParticipation
impl Default for ShortCycleParticipation
Source§impl GpuKernel for ShortCycleParticipation
impl GpuKernel for ShortCycleParticipation
Source§fn metadata(&self) -> &KernelMetadata
fn metadata(&self) -> &KernelMetadata
Returns the kernel metadata.
Source§fn requires_gpu_native(&self) -> bool
fn requires_gpu_native(&self) -> bool
Returns true if this kernel requires GPU-native execution.
Auto Trait Implementations§
impl Freeze for ShortCycleParticipation
impl RefUnwindSafe for ShortCycleParticipation
impl Send for ShortCycleParticipation
impl Sync for ShortCycleParticipation
impl Unpin for ShortCycleParticipation
impl UnwindSafe for ShortCycleParticipation
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.