Decrement max threshold when deleting node/edge.

countNeighbors() implemented.
Fix a bug in delete node (forgot to restore property select box)