Spectrum related to graphs