lib/jumoku/strategies/edge_labeling.rb in jumoku-0.2.4 vs lib/jumoku/strategies/edge_labeling.rb in jumoku-0.2.5
- old
+ new
@@ -1,7 +1,15 @@
module Jumoku
- module EdgeLabeling
- module Backend
+ module Strategies
+ # Edge labeling strategies are concerned with the way edges or arcs are
+ # labeled. Simple labeling schemes are based on indexing with increasing
+ # integers, whereas some other strategies elaborate on notions such as
+ # weight or symetry.
+ #
+ # This module provides basic implementation for the common ground used
+ # by custom strategies.
+ #
+ module EdgeLabelingBackend
# Sort edges by the provided block's logic. The block takes edge as
# parameter, and this method delegates to Enumerable#sort_by for
# sorting edges. Return unsorted edges list if no block is provided.
#
# @return [Array]