Graph iterator returns correct value.