pub struct Centralities {
pub fmt: FloatSliceFormat,
pub precision: Option<usize>,
pub sum_of_distances: Option<PathBuf>,
pub reachable_nodes: Option<PathBuf>,
pub harmonic: Option<PathBuf>,
pub closeness: Option<PathBuf>,
pub neighborhood_function: Option<PathBuf>,
}Expand description
Centralities that can be computed with hyperball.
To compress the result you can use named pipes or process substitution
like --harmonic >(zstd > harmonic.zstd).
Fields§
§fmt: FloatSliceFormatStorage format for centralities.
precision: Option<usize>Number of decimal digits for centralities in text formats.
sum_of_distances: Option<PathBuf>Computes the approximate sum of distances and saves them at the given path.
reachable_nodes: Option<PathBuf>Computes the approximate number of reachable nodes and saves them at the given path.
harmonic: Option<PathBuf>Computes the approximate harmonic centralities and saves them at the given path.
closeness: Option<PathBuf>Computes the approximate closeness centralities and saves them at the given path.
neighborhood_function: Option<PathBuf>Computes the approximate neighborhood function and saves it at the given path.
Implementations§
Source§impl Centralities
impl Centralities
pub const fn should_compute_sum_of_distances(&self) -> bool
pub const fn should_compute_sum_of_inverse_distances(&self) -> bool
Trait Implementations§
Source§impl Args for Centralities
impl Args for Centralities
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for Centralities
impl Clone for Centralities
Source§impl Debug for Centralities
impl Debug for Centralities
Source§impl FromArgMatches for Centralities
impl FromArgMatches for Centralities
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for Centralities
impl RefUnwindSafe for Centralities
impl Send for Centralities
impl Sync for Centralities
impl Unpin for Centralities
impl UnsafeUnpin for Centralities
impl UnwindSafe for Centralities
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> EitherFullOrEpsCopy<T> for Twhere
T: ?Sized,
impl<T> FullCopyConsistent<T> for Twhere
T: ?Sized,
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