Entanglement and reversible gelation for polymers of different architectures