The spectral problems for two types of quantum graphs are considered. We deal with star-like graph and a graph consisting of two rings connected through a segment. The spectral gap, i.e. the difference between the second and the first eigenvalues of the free Schr ödinger operator, is studied. The dependence of the gap on the geometric parameters of the graph is investigated. Particularly, it is shown that the maximal gap is observed for the symmetric quantum graph.