pub fn path_counting_on_graph()
Expand description

The most efficient way to calculate the solution to the second part of the question.

Running this we retrieve the final answer of $p = 0.4480326$ in c. 1ms.