Test `remove-all` for directed weighted graphs