pub struct ClusterOptions {
pub by: ClusterAlgorithm,
pub vector_property: Option<String>,
pub via: Option<String>,
pub directed: bool,
pub write_property: Option<String>,
pub synchronous_label_propagation: Option<SynchronousLabelPropagationOptions>,
}Expand description
Options for GraphForge::cluster.
Fields§
§by: ClusterAlgorithmAlgorithm name (e.g. "louvain").
vector_property: Option<String>Node property containing the feature vector for vector clustering.
via: Option<String>Optional relationship type filter.
directed: boolWhether to treat edges as directed.
write_property: Option<String>Optional property name to write community IDs back to nodes.
synchronous_label_propagation: Option<SynchronousLabelPropagationOptions>Fixed-round synchronous mode; valid only for by=label_propagation.
Trait Implementations§
Source§impl Clone for ClusterOptions
impl Clone for ClusterOptions
Source§impl Debug for ClusterOptions
impl Debug for ClusterOptions
Auto Trait Implementations§
impl Freeze for ClusterOptions
impl RefUnwindSafe for ClusterOptions
impl Send for ClusterOptions
impl Sync for ClusterOptions
impl Unpin for ClusterOptions
impl UnsafeUnpin for ClusterOptions
impl UnwindSafe for ClusterOptions
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