pub struct TraversalOptions {
pub strategy: TraversalStrategy,
pub seeds: Vec<ExternalId>,
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<ExternalId>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,
) -> TraversalOptionswhere
I: Into<ExternalId>,
pub fn breadth_first<I>(
seeds: impl IntoIterator<Item = I>,
max_depth: usize,
) -> TraversalOptionswhere
I: Into<ExternalId>,
Construct breadth-first traversal options.
Sourcepub fn depth_first<I>(
seeds: impl IntoIterator<Item = I>,
max_depth: usize,
) -> TraversalOptionswhere
I: Into<ExternalId>,
pub fn depth_first<I>(
seeds: impl IntoIterator<Item = I>,
max_depth: usize,
) -> TraversalOptionswhere
I: Into<ExternalId>,
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<TraversalOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TraversalOptions, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.