Update GraphHelpers.groovy

cleaned up graph helpers