get rid of unnecessary $scope.graph