public void FilterNodes(Predicate<Node> match) { foreach(Node n in nodes) { if(!match(n)) RemoveNode(n); } }