Function to delete each of a clicked node's sibling nodes and their corresponding links correctly uses node/link indexes, but still issues with graph