Unitary equivalence between the Green’s function and Schrödinger approaches for quantum graphs