diff --git a/Doc/library/heapq-binary-tree.png b/Doc/library/heapq-binary-tree.png new file mode 100644 index 00000000000000..b0782189b27cb7 Binary files /dev/null and b/Doc/library/heapq-binary-tree.png differ diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst index 95ef72469b18ef..ba8df20716abd9 100644 --- a/Doc/library/heapq.rst +++ b/Doc/library/heapq.rst @@ -350,7 +350,7 @@ that ``a[0]`` is always its smallest element. The strange invariant above is meant to be an efficient memory representation for a tournament. The numbers below are *k*, not ``a[k]``: -.. figure:: heapq-binary-tree.svg +.. figure:: heapq-binary-tree.* :class: invert-in-dark-mode :align: center :alt: Example (min-heap) binary tree.