build: simple prunning of dead end edges.