Diagramming heaps