It probably depends on one's culture. In the Philippines, it's customary for funeral visitors to give a small donation to the bereaved family members (typically, around 20-40 USD). And since funerals are considered a big social event, it's not uncommon to hear of fmilies who were able to recoup (or pay off) their funeral expenses through the donations alone.