Interface SpreadingActivationConfig

interface SpreadingActivationConfig {
    maxDepth?: number;
    decayPerHop?: number;
    activationThreshold?: number;
    maxResults?: number;
}

Properties

maxDepth?: number

Maximum hops from seed nodes.

Default

3
decayPerHop?: number

Activation decay per hop (multiplied each step).

Default

0.5
activationThreshold?: number

Minimum activation to continue spreading.

Default

0.1
maxResults?: number

Maximum activated nodes to return.

Default

20