trying heap, and a graph