update docs and the example for calculation of expectations of transitions along edges