diff --git a/reCTBN/src/process/ctbn.rs b/reCTBN/src/process/ctbn.rs index 6956ea0..d93400d 100644 --- a/reCTBN/src/process/ctbn.rs +++ b/reCTBN/src/process/ctbn.rs @@ -139,8 +139,8 @@ impl CtbnNetwork { return array_state; } /// Get the Adjacency Matrix. - pub fn get_adj_matrix(&self) -> Option> { - self.adj_matrix.clone() + pub fn get_adj_matrix(&self) -> Option<&Array2> { + self.adj_matrix.as_ref() } }