Rewrite `remove-vertices'` for directed graphs