Remove nodes with no links