ternary_str function

Data structure with the projected and boundary by node and class.