Here's a useful source on the graphs OM
http://msdn.microsoft.com/en-gb/library/bb259482.aspx

You might want to post links to those forum threads that contain useful code,