Graph potentials and moduli spaces of rank two bundles on a curve