Skip to main content

compute_lambda_with_fset

Function compute_lambda_with_fset 

Source
pub fn compute_lambda_with_fset(
    strength: &StrengthGraph,
    cf_splitting: &[u8],
) -> Vec<f64>
Expand description

Update lambda values given a partial F-set labeling (cf_splitting[i] = 0 means F, 1 means C, 2 means undecided).

λ_i = |{j : i strongly influences j}| + 0.5 * |{j : j influences i and j is F-node}|