pub struct ShortestPathOperator { /* private fields */ }Expand description
Operator that finds shortest paths between source and target nodes.
For each input row containing source and target nodes, this operator computes the shortest path and outputs the path as a value.
Implementations§
Source§impl ShortestPathOperator
impl ShortestPathOperator
Sourcepub fn new(
store: Arc<LpgStore>,
input: Box<dyn Operator>,
source_column: usize,
target_column: usize,
edge_type: Option<String>,
direction: Direction,
) -> Self
pub fn new( store: Arc<LpgStore>, input: Box<dyn Operator>, source_column: usize, target_column: usize, edge_type: Option<String>, direction: Direction, ) -> Self
Creates a new shortest path operator.
Sourcepub fn with_all_paths(self, all_paths: bool) -> Self
pub fn with_all_paths(self, all_paths: bool) -> Self
Sets whether to find all shortest paths.
Trait Implementations§
Source§impl Operator for ShortestPathOperator
impl Operator for ShortestPathOperator
Auto Trait Implementations§
impl Freeze for ShortestPathOperator
impl !RefUnwindSafe for ShortestPathOperator
impl Send for ShortestPathOperator
impl Sync for ShortestPathOperator
impl Unpin for ShortestPathOperator
impl !UnwindSafe for ShortestPathOperator
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