menu option to remove nodes without edges