Now uses edge weights to calculate vertex distances