hallnath1 / CASTLEGUARD

CASTLEGUARD: Continuously Anonymizing STreaming data via adaptive cLustEring with GUARanteed Differential privacy
Apache License 2.0
7 stars 0 forks source link

Ensure Items cannot be in multiple clusters #44

Closed alexander-jackson closed 4 years ago

alexander-jackson commented 4 years ago

Ensure Items cannot be contained within multiple clusters. Cluster.insert implements a basic detector, checking that the inserted item does not have a parent. If it does, it removes it from that cluster and then updates the parent node. Add a test to ensure this is the case as well.