use super::models::CellNd; use crate::core::error::Result; use crate::math::graph::extract; use crate::math::graph::models::Network; /// Extracts the network of filled sites joined to their axis neighbors. /// /// # Errors /// /// Errors when the cell is neither two- nor three-dimensional. pub fn core_graph(cell: &CellNd) -> Result { extract::core_graph(cell.types()) } /// Extracts the network of corners and edges outlining every filled site. /// /// # Errors /// /// Errors when the cell is neither two- nor three-dimensional. pub fn edge_graph(cell: &CellNd) -> Result { extract::edge_graph(cell.types()) } /// Extracts the network of empty sites joined to their axis neighbors. /// /// # Errors /// /// Errors when the cell is neither two- nor three-dimensional. pub fn tunnel_graph(cell: &CellNd) -> Result { extract::tunnel_graph(cell.types()) }