Are the `clear`s need here since the `NodeMap` is being constructed from scratch?