Skip to content

Commit

Permalink
Update GraphScaler documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Lohmann committed Jan 12, 2017
1 parent fdc9e3f commit a3ea7ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/atlas/scaler/graph_scaler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def initialize(scaling_factor)
@scaling_factor = scaling_factor
end

# Public: Scales the demands in the graph - modifying the original graph!
# Public: Scales the demands in the graph hash - modifying the original hash!
#
# graph - A Turbine::Graph containing nodes and edges.
# graph - A Hash containing nodes and edges.
#
# Returns the graph itself.
# Returns the modified graph hash itself.
def call(graph)
SCALED_ATTRIBUTES.each do |graph_key, attributes|
graph[graph_key].each_value do |record|
Expand All @@ -35,6 +35,7 @@ def call(graph)
end
end
end
graph
end
end # Scaler::GraphScaler
end # Atlas

0 comments on commit a3ea7ce

Please sign in to comment.