Test `add-edges'` for directed weighted graphs