ENH: branch discretiztion