Stochastic Block Model — Spectral Community Detection

Generate an SBM graph with K communities, then embed nodes via the top-2 eigenvectors of the graph Laplacian. Watch how detectability breaks down as p_out approaches p_in.