pub fn update_mapping_stack(
    mapping_cur: usize,
    current_mapping: &VertexMapping,
    current_boundary_edges: &BoundaryEdges,
    neighbour_mapping: &Vec<VertexMapping>,
    mapping_stack: &mut Vec<MappingStatus>
) {
    for nm in neighbour_mapping.iter() {
        let mut current_mapping_cloned = current_mapping.to_vec();
        for i in 0..current_mapping_cloned.len() {
            current_mapping_cloned[i].append(&mut nm[i].to_vec())
        }
        mapping_stack.push((mapping_cur, current_mapping_cloned, current_boundary_edges.to_vec()));
    }
}
/// All possible mappings are stored in a mapping stack
/// Update this stack with the mapping result of neighbours
All possible mappings are stored in a mapping stack
Update this stack with the mapping result of neighbours
All possible mappings are stored in a mapping stack Update this stack with the mapping result of neighbours
pub fn update_mapping_stack(
    mapping_cur: usize,
    current_mapping: &VertexMapping,
    current_boundary_edges: &BoundaryEdges,
    neighbour_mapping: &Vec<VertexMapping>,
    mapping_stack: &mut Vec<MappingStatus>
) {
    for nm in neighbour_mapping.iter() {
        let mut current_mapping_cloned = current_mapping.to_vec();
        for i in 0..current_mapping_cloned.len() {
            current_mapping_cloned[i].append(&mut nm[i].to_vec())
        }
        mapping_stack.push((mapping_cur, current_mapping_cloned, current_boundary_edges.to_vec()));
    }
}
pub fn update_mapping_stack ( mapping_cur : usize , current_mapping : & VertexMapping , current_boundary_edges : & BoundaryEdges , neighbour_mapping : & Vec < VertexMapping > , mapping_stack : & mut Vec < MappingStatus > ) { for nm in neighbour_mapping . iter ( ) { let mut current_mapping_cloned = current_mapping . to_vec ( ) ; for i in 0 .. current_mapping_cloned . len ( ) { current_mapping_cloned [ i ] . append ( & mut nm [ i ] . to_vec ( ) ) } mapping_stack . push ( ( mapping_cur , current_mapping_cloned , current_boundary_edges . to_vec ( ) ) ) ; } }
All possible mappings are stored in a mapping stack
Update this stack with the mapping result of neighbours
All possible mappings are stored in a mapping stack Update this stack with the mapping result of neighbours
mapping_cur
usize
current_mapping
&VertexMapping
current_boundary_edges
&BoundaryEdges
neighbour_mapping
&Vec<VertexMapping>
mapping_stack
&mut Vec<MappingStatus>
mapping_cur
usize
current_mapping
&VertexMapping
current_boundary_edges
&BoundaryEdges
neighbour_mapping
&Vec<VertexMapping>
mapping_stack
&mut Vec<MappingStatus>