pub struct CliArgs {Show 14 fields
pub basename: PathBuf,
pub perm: Option<PathBuf>,
pub work_dir: Option<PathBuf>,
pub fmt: IntSliceFormat,
pub gammas: Vec<String>,
pub num_threads: NumThreadsArg,
pub no_perm: bool,
pub max_updates: usize,
pub modified: bool,
pub perc_modified: Option<f64>,
pub gain_threshold: f64,
pub improv_threshold: f64,
pub seed: u64,
pub granularity: GranularityArgs,
}Fields§
§basename: PathBufThe basename of the graph.
perm: Option<PathBuf>Output filename for the LLP permutation. If not provided, only labels are computed without combining them into a permutation. In that case, –work-dir should be set to preserve the labels.
work_dir: Option<PathBuf>The folder where the LLP labels are stored as ε-serde files (labels_.bin plus a labels_.gap objective value per gamma). If not specified, a temporary directory is used and deleted at the end; the parent folder for temporary directories can be set with the TMPDIR environment variable. A work directory serves to save the labels and to resume the computation of gammas, whose computation on large graphs might take days. Similar nodes will be assigned the same label. To resume computation, compute the remaining gammas without passing “perm”, and then run “llp-combine” to combine all labels in the folder into a final permutation.
fmt: IntSliceFormatThe format of the permutation file.
gammas: Vec<String>The ɣ’s to use in LLP, separated by commas. The format is given by an integer numerator (if missing, assumed to be one), a dash, and then a power-of-two exponent for the denominator. For example, -2 is 1/4, and 0-0 is 0.
num_threads: NumThreadsArg§no_perm: boolWhether to use the identity instead of a random permutation
max_updates: usizeMaximum number of updates for a given ɣ.
modified: boolStop updates when the number of modified nodes falls below the square root of the number of nodes.
perc_modified: Option<f64>Stop updates when the fraction of modified nodes falls below this percentage.
gain_threshold: f64The gain threshold used to stop the computation (0 to disable).
improv_threshold: f64The threshold on the average (over the last ten updates) gain improvement used to stop the computation (-Inf to disable).
seed: u64The seed to use for the PRNG.
granularity: GranularityArgsTrait Implementations§
Source§impl Args for CliArgs
impl Args for CliArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CliArgs
impl CommandFactory for CliArgs
Source§impl FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
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>
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>
ArgMatches to self.Source§impl Parser for CliArgs
impl Parser for CliArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnsafeUnpin for CliArgs
impl UnwindSafe for CliArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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