pub struct GraphPath {
pub nodes: Vec<String>,
pub edges: Vec<PathEdge>,
pub total_weight: f64,
pub length: usize,
}Expand description
A single path through the graph
Fields§
§nodes: Vec<String>Ordered list of entity names in the path
edges: Vec<PathEdge>Relations connecting the nodes
total_weight: f64Total path weight (sum of relation weights, 1.0 for unweighted)
length: usizePath length (number of edges)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphPath
impl<'de> Deserialize<'de> for GraphPath
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 GraphPath
impl RefUnwindSafe for GraphPath
impl Send for GraphPath
impl Sync for GraphPath
impl Unpin for GraphPath
impl UnsafeUnpin for GraphPath
impl UnwindSafe for GraphPath
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