Thanks for patching this plugin. I have really been wanting to have graphviz working in WordPress. This is a great effort.
Is it possible for you to email the patch to me? I know you have put the diff output above, but have you posted the patched file somewhere?
Cheers,
Brad