pub enum LeidenObjective {
Modularity,
Cpm,
Er,
}Expand description
Quality function (objective) that Leiden optimises. Mirrors
igraph_leiden_objective_t.
Variants§
Modularity
Generalised modularity
Q = 1/(2m) Σ_ij (A_ij − γ k_i k_j / (2m)) δ(c_i,c_j).
Edge weights must not be negative.
Cpm
Constant Potts Model
Q = 1/(2m) Σ_ij (A_ij − γ) δ(c_i,c_j).
Edge weights are allowed to be negative.
Er
Erdős-Rényi Q = 1/(2m) Σ_ij (A_ij − γ·p) δ(c_i,c_j), with
p the weighted density. Edge weights must not be negative.
Trait Implementations§
Source§impl Clone for LeidenObjective
impl Clone for LeidenObjective
Source§fn clone(&self) -> LeidenObjective
fn clone(&self) -> LeidenObjective
Returns a duplicate of the value. Read more
1.0.0 · 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 LeidenObjective
impl Debug for LeidenObjective
Source§impl PartialEq for LeidenObjective
impl PartialEq for LeidenObjective
impl Copy for LeidenObjective
impl Eq for LeidenObjective
impl StructuralPartialEq for LeidenObjective
Auto Trait Implementations§
impl Freeze for LeidenObjective
impl RefUnwindSafe for LeidenObjective
impl Send for LeidenObjective
impl Sync for LeidenObjective
impl Unpin for LeidenObjective
impl UnsafeUnpin for LeidenObjective
impl UnwindSafe for LeidenObjective
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