The Network Behind the Cosmic Web