ENH: begin another function to deal with mapping of events onto edges of trees