Contraction and Hourglass Persistence for Learning on Graphs, Simplices, and Cells