lib/jumoku/strategies/edge_labeling/simple.rb in jumoku-0.2.4 vs lib/jumoku/strategies/edge_labeling/simple.rb in jumoku-0.2.5
- old
+ new
@@ -1,16 +1,16 @@
module Jumoku
- module EdgeLabeling
+ module Strategies
# A simple edge labeling strategy: as new nodes are added, new edges are
# assigned increasing integers. Removed edges do not trigger reindexing,
# so for a tree with n nodes, the labeling set is ||n|| but indexes are
# not necessarily < n (indexing starts from 0).
#
# This simple strategy allows for using simple search algorithms as well
# for simple ordering schemes.
#
- module Simple
- include EdgeLabeling::Backend
+ module SimpleEdgeLabeling
+ include Strategies::EdgeLabelingBackend
attr_accessor :next_simple_edge_label_number
# Override to handle an iterator for simple edge labeling. When a branch
# is added, it is labeled with an OpenHash with one :_weight key which