Sample code for

"Counting and detecting figures using persistent homology"