pub struct VectorizedDistanceCalculator;
Expand description
Vectorized distance calculations for centrality algorithms
Implementations§
Source§impl VectorizedDistanceCalculator
impl VectorizedDistanceCalculator
Sourcepub fn compute_all_pairs_distances(
&self,
graph: &ArrowGraph,
) -> Result<Vec<Vec<f64>>>
pub fn compute_all_pairs_distances( &self, graph: &ArrowGraph, ) -> Result<Vec<Vec<f64>>>
Compute all-pairs shortest path distances using vectorized operations
Sourcepub fn compute_vectorized_betweenness(
&self,
graph: &ArrowGraph,
) -> Result<HashMap<String, f64>>
pub fn compute_vectorized_betweenness( &self, graph: &ArrowGraph, ) -> Result<HashMap<String, f64>>
Compute betweenness centrality using vectorized distance calculations
Auto Trait Implementations§
impl Freeze for VectorizedDistanceCalculator
impl RefUnwindSafe for VectorizedDistanceCalculator
impl Send for VectorizedDistanceCalculator
impl Sync for VectorizedDistanceCalculator
impl Unpin for VectorizedDistanceCalculator
impl UnwindSafe for VectorizedDistanceCalculator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more