This is a correct translation from the doctest but a poor API. We should fix that later, having a method to remove nodes is much better than ``del(node)``.