pub struct BetweennessCentrality { /* private fields */ }Expand description
How much of the selected topology’s shortest routing passes through one node.
The raw score sums, over every ordered pair of other nodes, the fraction of that pair’s shortest routes this node sits inside. The normalized score divides it by how many such pairs a graph this size can state at all.
Implementations§
Source§impl BetweennessCentrality
impl BetweennessCentrality
Sourcepub fn node(self) -> GraphNodeId
pub fn node(self) -> GraphNodeId
The node this score describes.
Sourcepub fn normalized(self) -> f64
pub fn normalized(self) -> f64
That share against every ordered pair a graph this size can state, or zero when it can state none.
Trait Implementations§
Source§impl Clone for BetweennessCentrality
impl Clone for BetweennessCentrality
impl Copy for BetweennessCentrality
Auto Trait Implementations§
impl Freeze for BetweennessCentrality
impl RefUnwindSafe for BetweennessCentrality
impl Send for BetweennessCentrality
impl Sync for BetweennessCentrality
impl Unpin for BetweennessCentrality
impl UnsafeUnpin for BetweennessCentrality
impl UnwindSafe for BetweennessCentrality
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