This is a demo of Binary heaps.

1. Min-heap 2. Max-heap Visualisation by Cytoscape.js

Binary Heaps

Source Array:

Insertion:

Deletion:

And you can also extract the Min/Max from the specific binary heap.