pub struct NeighborGraph {
pub num_nodes: usize,
pub edges: Vec<[u32; 2]>,
}Expand description
A directed neighborhood graph over a point cloud.
Fields§
§num_nodes: usizeNumber of nodes (input points).
edges: Vec<[u32; 2]>Directed edges as [source, target] index pairs (no self-loops).
Implementations§
Trait Implementations§
Source§impl Clone for NeighborGraph
impl Clone for NeighborGraph
Source§fn clone(&self) -> NeighborGraph
fn clone(&self) -> NeighborGraph
Returns a duplicate of the value. Read more
1.0.0 · 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 NeighborGraph
impl Debug for NeighborGraph
Source§impl PartialEq for NeighborGraph
impl PartialEq for NeighborGraph
impl Eq for NeighborGraph
impl StructuralPartialEq for NeighborGraph
Auto Trait Implementations§
impl Freeze for NeighborGraph
impl RefUnwindSafe for NeighborGraph
impl Send for NeighborGraph
impl Sync for NeighborGraph
impl Unpin for NeighborGraph
impl UnsafeUnpin for NeighborGraph
impl UnwindSafe for NeighborGraph
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