compress_ids function

Remove non-active nodes from one-mode/two-mode/longitudinal networks