Skip to main content

Module causal

Module causal 

Source
Expand description

Causal graph DAG with typed/weighted directed edges.

Provides a concurrent, lock-free causal reasoning graph where nodes represent events or observations and edges encode causal relationships with weights and provenance metadata. Built on DashMap for safe concurrent access from multiple agent threads.

Structs§

CausalEdge
A weighted, typed directed edge between two causal graph nodes.
CausalGraph
A concurrent directed acyclic graph for causal reasoning.
CausalNode
A node in the causal graph representing an event, observation, or concept.
ChangeEvent
A temporal change event: a set of nodes that changed together.
ChangePrediction
A prediction that a node will change soon.
CouplingPair
Coupling between two nodes based on co-modification frequency.
SpectralResult
Result of spectral analysis on the causal graph.

Enums§

CausalEdgeType
The kind of causal relationship an edge represents.

Type Aliases§

NodeId
Numeric identifier for causal graph nodes.