pub struct PathsOptions {
pub by: PathAlgorithm,
pub via: Option<String>,
pub directed: bool,
pub k: usize,
pub weight: Option<String>,
pub capacity_property: Option<String>,
pub cost_property: Option<String>,
pub heuristic: Option<String>,
pub walk_length: Option<usize>,
pub seed: Option<u64>,
pub terminal_uuids: Vec<[u8; 16]>,
pub prize_property: Option<String>,
}Expand description
Options for GraphForge::paths.
Fields§
§by: PathAlgorithmAlgorithm name (e.g. "dijkstra", "bfs", "max_flow").
via: Option<String>Optional relationship type filter.
directed: boolWhether to treat edges as directed.
k: usizeNumber of paths to return (e.g. Yen’s k-shortest).
weight: Option<String>Optional edge-weight property name.
capacity_property: Option<String>Optional graph-native capacity property for flow algorithms.
cost_property: Option<String>Required graph-native unit-cost property for min-cost flow algorithms.
heuristic: Option<String>Optional node property containing an A* heuristic estimate.
walk_length: Option<usize>Maximum number of edge transitions for random-walk paths.
seed: Option<u64>Seed for reproducible random-walk paths.
terminal_uuids: Vec<[u8; 16]>Canonical resolved terminal UUIDs for explicit multi-terminal algorithms.
prize_property: Option<String>Graph-native node property containing prizes for prize-collecting Steiner trees.
Trait Implementations§
Source§impl Clone for PathsOptions
impl Clone for PathsOptions
Source§fn clone(&self) -> PathsOptions
fn clone(&self) -> PathsOptions
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 PathsOptions
impl Debug for PathsOptions
Auto Trait Implementations§
impl Freeze for PathsOptions
impl RefUnwindSafe for PathsOptions
impl Send for PathsOptions
impl Sync for PathsOptions
impl Unpin for PathsOptions
impl UnsafeUnpin for PathsOptions
impl UnwindSafe for PathsOptions
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