restore_parent
hpa_port = restore_parent(dpa, pos_port, gran_port, ways_port);
hpa = restore_parent(hpa_port, position, gran_hb, ways_hb);