Graph Lagrangian for CO2 and Benzene to compute vibrational spectra