Fix directed weigthed graphs `add-edges'`

The :preceding map should have sets instead of maps for values.