deep_causality 0.13.5

Computational causality library. Provides causality graph, collections, context and causal reasoning.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * SPDX-License-Identifier: MIT
 * Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
 */
use crate::{CausalAction, CausalState};
use std::collections::HashMap;

/// A tuple consisting of a causal state and an associated causal action.
///
/// This is used to represent the result of state-action reasoning steps.
pub type StateAction<I, O, C> = (CausalState<I, O, C>, CausalAction);

pub type CSMMap<I, O, C> = HashMap<usize, StateAction<I, O, C>>;

pub type CSMStateActions<I, O, C> = [StateAction<I, O, C>];