Skip to main content

create_element_amf

Function create_element_amf 

Source
pub fn create_element_amf(
    ws: &mut Workspace,
    me: usize,
) -> Result<(usize, usize, i32, usize), OrderingError>
Expand description

AMF analogue of create_element. Identical structure; differs only in the bucket-index used when unlinking absorbed neighbours from their degree lists. AMD reads degree[i] (which doubles as the bucket index because AMD’s bucket is identity); AMF computes amf_bucket_of(wf[i], n) because the AMF score and running degree are stored in distinct fields (wf vs degree).