Methods and systems for identifying optimized ablation targets for treating and preventing arrhythmias sustained by reentrant circuits are described. The methods comprise receiving at least one mesh generated from one or more images of a patient's heart, receiving activation data generated from one or more simulations of electrical-signal propagation over the at least one mesh, generating at least one flow graph based on the activation data and the at least one mesh, and applying a max-flow min-cut algorithm to the at least one flow graph to determine at least one of a number, one or more dimensions, and one or more locations of one or more ablation targets. Non-transitory computer-readable media storing a set of instructions for treating and preventing arrhythmias sustained by reentrant circuits are also described.