pub struct GraphHopEdge {
pub hop: usize,
pub direction: String,
pub relation_type: String,
pub weight: f32,
pub from_id: String,
pub to: GraphNodeRef,
}Expand description
One edge in the neighborhood expansion (BFS order).
Fields§
§hop: usizeHop distance from the root (1 = direct neighbor).
direction: Stringout if root-side was source; in if root-side was target.
relation_type: StringRelation label (relates_to, anchors, doc_links, auto_*, …).
weight: f32Edge weight.
from_id: StringNode id on the parent side of this hop (closer to root).
to: GraphNodeRefNeighbor node reached by this hop.
Trait Implementations§
Source§impl Clone for GraphHopEdge
impl Clone for GraphHopEdge
Source§fn clone(&self) -> GraphHopEdge
fn clone(&self) -> GraphHopEdge
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 GraphHopEdge
impl Debug for GraphHopEdge
Source§impl<'de> Deserialize<'de> for GraphHopEdge
impl<'de> Deserialize<'de> for GraphHopEdge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphHopEdge
impl RefUnwindSafe for GraphHopEdge
impl Send for GraphHopEdge
impl Sync for GraphHopEdge
impl Unpin for GraphHopEdge
impl UnsafeUnpin for GraphHopEdge
impl UnwindSafe for GraphHopEdge
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