pub enum CentralityAlgorithm {
PageRank {
damping: f32,
},
Degree,
Betweenness,
}Expand description
Which centrality algorithm to use.
Variants§
PageRank
Standard PageRank — importance flows through edges.
Degree
Degree centrality — simple count of connections.
Betweenness
Betweenness centrality — how often a node appears on shortest paths.
Trait Implementations§
Source§impl Clone for CentralityAlgorithm
impl Clone for CentralityAlgorithm
Source§fn clone(&self) -> CentralityAlgorithm
fn clone(&self) -> CentralityAlgorithm
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 moreAuto Trait Implementations§
impl Freeze for CentralityAlgorithm
impl RefUnwindSafe for CentralityAlgorithm
impl Send for CentralityAlgorithm
impl Sync for CentralityAlgorithm
impl Unpin for CentralityAlgorithm
impl UnsafeUnpin for CentralityAlgorithm
impl UnwindSafe for CentralityAlgorithm
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