The zero-divisor graph of an amalgamated algebra