The spectral form factor for quantum graphs