pub struct TraversalOptions {
pub strategy: TraversalStrategy,
pub seeds: Vec<NodeId>,
pub max_depth: usize,
pub direction: TraversalDirection,
pub allowed_labels: BTreeSet<String>,
pub hub_policy: HubExpansionPolicy,
}Expand description
Complete Graphify-compatible traversal options.
Fields§
§strategy: TraversalStrategyBFS or DFS.
seeds: Vec<NodeId>One or more external node IDs.
max_depth: usizeMaximum emitted depth. Zero emits only seeds.
direction: TraversalDirectionEdge direction.
allowed_labels: BTreeSet<String>Allowed edge labels. Empty means every label.
hub_policy: HubExpansionPolicyOptional hub suppression.
Implementations§
Source§impl TraversalOptions
impl TraversalOptions
Sourcepub fn breadth_first<I>(
seeds: impl IntoIterator<Item = I>,
max_depth: usize,
) -> Self
pub fn breadth_first<I>( seeds: impl IntoIterator<Item = I>, max_depth: usize, ) -> Self
Construct breadth-first traversal options.
Sourcepub fn depth_first<I>(
seeds: impl IntoIterator<Item = I>,
max_depth: usize,
) -> Self
pub fn depth_first<I>( seeds: impl IntoIterator<Item = I>, max_depth: usize, ) -> Self
Construct depth-first traversal options.
Trait Implementations§
Source§impl Clone for TraversalOptions
impl Clone for TraversalOptions
Source§fn clone(&self) -> TraversalOptions
fn clone(&self) -> TraversalOptions
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 TraversalOptions
impl Debug for TraversalOptions
Source§impl<'de> Deserialize<'de> for TraversalOptions
impl<'de> Deserialize<'de> for TraversalOptions
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
impl Eq for TraversalOptions
Source§impl PartialEq for TraversalOptions
impl PartialEq for TraversalOptions
Source§impl Serialize for TraversalOptions
impl Serialize for TraversalOptions
impl StructuralPartialEq for TraversalOptions
Auto Trait Implementations§
impl Freeze for TraversalOptions
impl RefUnwindSafe for TraversalOptions
impl Send for TraversalOptions
impl Sync for TraversalOptions
impl Unpin for TraversalOptions
impl UnsafeUnpin for TraversalOptions
impl UnwindSafe for TraversalOptions
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