Community detection thresholds and the weak Ramanujan property | Synapse