Graph scripting