[en] We consider a metric graph G made of two graphs G1 and G2 attached at one point. We derive a formula relating the spectral determinant of the Laplace operator SG(γ)=det(γ-Δ) in terms of the spectral determinants of the two subgraphs. The result is generalized to describe the attachment of n graphs. The formulae are also valid for the spectral determinant of the Schroedinger operator det(γ-Δ+V(x))