Merge branch '90-feature-method-to-get-the-adjacency-matrix' into 'dev'

Added `get_adj_matrix()` to `CtbnNetwork`
pull/22/head
Meliurwen 2 years ago
commit 0eb427e5cf
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 4
      reCTBN/src/process/ctbn.rs

@ -138,6 +138,10 @@ impl CtbnNetwork {
return array_state; return array_state;
} }
/// Get the Adjacency Matrix.
pub fn get_adj_matrix(&self) -> Option<&Array2<u16>> {
self.adj_matrix.as_ref()
}
} }
impl process::NetworkProcess for CtbnNetwork { impl process::NetworkProcess for CtbnNetwork {

Loading…
Cancel
Save