validate graph quality