pub struct NeighborhoodResult {
pub center: Node,
pub nodes: Vec<Node>,
pub edges: Vec<Edge>,
pub distances: HashMap<String, usize>,
}Expand description
Result of a neighborhood query.
Fields§
§center: NodeThe central node.
nodes: Vec<Node>Nodes within the specified radius.
edges: Vec<Edge>Edges connecting the neighborhood nodes.
distances: HashMap<String, usize>Distance from center to each node (by node ID).
Trait Implementations§
Source§impl Clone for NeighborhoodResult
impl Clone for NeighborhoodResult
Source§fn clone(&self) -> NeighborhoodResult
fn clone(&self) -> NeighborhoodResult
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 moreAuto Trait Implementations§
impl Freeze for NeighborhoodResult
impl RefUnwindSafe for NeighborhoodResult
impl Send for NeighborhoodResult
impl Sync for NeighborhoodResult
impl Unpin for NeighborhoodResult
impl UnsafeUnpin for NeighborhoodResult
impl UnwindSafe for NeighborhoodResult
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