Double and triple node-erasure correcting codes over graphs