deep_causality_topology 0.7.1

Topological data structures for the DeepCausality project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * SPDX-License-Identifier: MIT
 * Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
 */

use std::hash::Hash;

/// Marker trait for cell types in a chain complex.
pub trait Cell: Clone + Eq + Hash {
    /// Dimension of this cell.
    fn dim(&self) -> usize;

    /// Boundary as signed sum of lower-dimensional cells.
    /// This provides the algebraic topology structure.
    fn boundary(&self) -> Vec<(Self, i8)>;
}