(10)
/ \
(9) (8)
/ \ / \
(7) (5) (4)
x x
/ and \ == x=>y
y y
thanks in advance
(10)
/ \
(9) (8)
/ \ / \
(7) (5) (4)
x x
/ and \ == x=>y
y y
thanks in advance
That looks like a max-heap, except that (5) should not be attached to two parents.
A max-heap is a tree-based data structure where x>=y
if x is a parent of y. Since it is a tree, each child can only have one parent.
It's a directed acyclic graph (DAG), which can define a (partial) ordering relation.