pub struct MeshGraph {
pub xadj: Vec<usize>,
pub adjncy: Vec<usize>,
pub order: Vec<PointId>,
pub weights: Option<Vec<u32>>,
}Expand description
CSR-style adjacency graph with optional weights.
Fields§
§xadj: Vec<usize>CSR offsets into adjncy for each vertex.
adjncy: Vec<usize>CSR adjacency list (indices into order).
order: Vec<PointId>Point ordering that defines vertex indices.
weights: Option<Vec<u32>>Optional per-edge weights aligned with adjncy.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MeshGraph
impl RefUnwindSafe for MeshGraph
impl Send for MeshGraph
impl Sync for MeshGraph
impl Unpin for MeshGraph
impl UnsafeUnpin for MeshGraph
impl UnwindSafe for MeshGraph
Blanket Implementations§
Source§impl<T> AccumulatePathExt for T
impl<T> AccumulatePathExt for T
fn accumulate_path<O, I>(path: I) -> Owhere
O: Orientation,
I: IntoIterator<Item = O>,
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