walk the edges and nodes, clean things up