Graph codes play an important role in photonic quantum technologies as they provide significant protection against qubit loss, a dominant noise mechanism. Here, we develop methods to analyze and optimize measurement-based tolerance loss computational errors for arbitrary graph codes. Using these tools identify optimized with up 12 qubits asymptotically large modular constructions. The developed...