redge_branch function to branch the edge