Well, first the main purpose for the forum is not to create script for other users. Instead we can help you to fix your script if you get stuck. So please upload your graph and add information what you want to do.