Probability on Trees and Networks