pub struct MultiDiCsr {
pub succ_offsets: Vec<usize>,
pub succ_targets: Vec<u32>,
pub pred_offsets: Vec<usize>,
pub pred_targets: Vec<u32>,
}Expand description
Revision-keyed integer CSR view of a MultiDiGraph’s distinct successor and predecessor rows. Parallel-edge keys are intentionally collapsed because this view is for multiplicity-insensitive structural algorithms.
Fields§
§succ_offsets: Vec<usize>§succ_targets: Vec<u32>§pred_offsets: Vec<usize>§pred_targets: Vec<u32>Implementations§
Source§impl MultiDiCsr
impl MultiDiCsr
pub fn successors(&self, idx: usize) -> &[u32]
pub fn predecessors(&self, idx: usize) -> &[u32]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiDiCsr
impl RefUnwindSafe for MultiDiCsr
impl Send for MultiDiCsr
impl Sync for MultiDiCsr
impl Unpin for MultiDiCsr
impl UnsafeUnpin for MultiDiCsr
impl UnwindSafe for MultiDiCsr
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