Hamilton-Jacobi Phase Function for a Local Hamiltonian Flow Graph