edgeProbs function

Compute the relative frequencies of state changes along edges