Update `add-edges'` to use the default edge weight when none is given