WAVES AND DIFFUSION ON METRIC GRAPHS WITH GENERAL VERTEX CONDITIONS