pub struct SimilarOptions {
pub by: SimilarAlgorithm,
pub k: usize,
pub vector_property: Option<String>,
pub via: Option<String>,
}Expand description
Options for GraphForge::similar.
Fields§
§by: SimilarAlgorithmAlgorithm name (e.g. "node_similarity", "knn", "cosine").
k: usizeNumber of neighbours to return.
vector_property: Option<String>Optional vector property for vector-based similarity.
via: Option<String>Optional relationship type filter.
Trait Implementations§
Source§impl Clone for SimilarOptions
impl Clone for SimilarOptions
Source§fn clone(&self) -> SimilarOptions
fn clone(&self) -> SimilarOptions
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 SimilarOptions
impl Debug for SimilarOptions
Auto Trait Implementations§
impl Freeze for SimilarOptions
impl RefUnwindSafe for SimilarOptions
impl Send for SimilarOptions
impl Sync for SimilarOptions
impl Unpin for SimilarOptions
impl UnsafeUnpin for SimilarOptions
impl UnwindSafe for SimilarOptions
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