pub struct DSeparationWorkspace {
pub ancestral: BitSet,
pub conditioning: BitSet,
pub undirected: Vec<Vec<DenseNodeId>>,
pub visited: BitSet,
pub frontier: Vec<DenseNodeId>,
pub pred: Vec<Option<DenseNodeId>>,
pub graph_ws: GraphWorkspace,
}Expand description
Scratch buffers for repeated d-separation queries.
Fields§
§ancestral: BitSetAncestral closure.
conditioning: BitSetConditioning set membership.
undirected: Vec<Vec<DenseNodeId>>Undirected adjacency for the moral graph (only ancestral nodes).
visited: BitSetBFS visited.
frontier: Vec<DenseNodeId>BFS frontier / predecessor scratch.
pred: Vec<Option<DenseNodeId>>Predecessor for path reconstruction.
graph_ws: GraphWorkspaceGraph traversal workspace.
Implementations§
Trait Implementations§
Source§impl Clone for DSeparationWorkspace
impl Clone for DSeparationWorkspace
Source§fn clone(&self) -> DSeparationWorkspace
fn clone(&self) -> DSeparationWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DSeparationWorkspace
impl Debug for DSeparationWorkspace
Source§impl Default for DSeparationWorkspace
impl Default for DSeparationWorkspace
Source§fn default() -> DSeparationWorkspace
fn default() -> DSeparationWorkspace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DSeparationWorkspace
impl RefUnwindSafe for DSeparationWorkspace
impl Send for DSeparationWorkspace
impl Sync for DSeparationWorkspace
impl Unpin for DSeparationWorkspace
impl UnsafeUnpin for DSeparationWorkspace
impl UnwindSafe for DSeparationWorkspace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more