Skip to main content

find_relevant_rings_from_adj

Function find_relevant_rings_from_adj 

Source
pub fn find_relevant_rings_from_adj(
    adj: &HashMap<i32, Vec<i32>>,
    bonds: impl IntoIterator<Item = (i32, i32)>,
    max_size: usize,
) -> Vec<Ring>
Expand description

Relevant Rings: every distinct smallest cycle through each bond.

This is the union of all SSSR bases (CDK/Vismara relevant cycles), not one greedy SSSR cover. Cubane keeps all six faces; SSSR keeps five. max_size is inclusive.