let
sum s node =
if
Set
.is_empty s
then
node
else
_sum s node