red-black code for node family.