quantum graphs, spectral properties, Kirchhoff coupling, delta coupling, self-adjointness, Gaffney-type theorem