On the inverse spectral problems for quantum graphs