Edge cost is not represented with a hash instead of a neighbor matrix