We extend the concepts of subdivision graph and line graph to weighted graphs. We provide some results concerning necessary/ sufficient conditions for a weighted graph to be Hamiltonian in terms of the spectra of its compound graphs (subdivision and line graphs). As an application we identify some Hamiltonian signed graphs.