An Exact Numerical Approach to Calculate the First Passage Time for General Random Walks on a Network