Partitioned Persistent Homology