Working on graph pruning, failing to prune nodes only connected to two edges, grr