smooth_transitions function

Smooths transition counts between neighboring states/clusters