networkx based analysis of continuous-time Markov chains on trees