MAINT: debug and test some of the code that computes conditional expectations of event counts and dwell times along edges