Implement Graph#removeMatches