causal_hub/graphs/
error.rs

1use thiserror::Error;
2
3/// Graph error enumerator.
4#[derive(Debug, Error, PartialEq, Eq)]
5pub enum ErrorGraph {
6    /// Inconsistent matrix error variant.
7    #[error("Matrix must be consistent with inputs")]
8    InconsistentMatrix,
9    /// Non-square matrix error variant.
10    #[error("Matrix must be square")]
11    NonSquareMatrix,
12    /// Non-symmetric matrix error variant.
13    #[error("Matrix must be symmetric")]
14    NonSymmetricMatrix,
15}