Characterizations of edge ideals via LCM lattices