This quote means that when you try to get revenge or become angry at someone who was once a friend, it can have the most dangerous and damaging effects. Just like a graft, when you try to combine two plants, you are combining two very different things and the result can sometimes be bad. In this case, when someone who was once a friend is wronged, when you continue to hate them, the consequences can be very harmful.