lib/jumoku/strategies/edge_labeling/simple.rb
# 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
# value is an increasing integer. One may pass any custom label to the
# method, which will be available under the :label key of the hash.
#
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
value is an increasing integer. One may pass any custom label to the
method, which will be available under the :label key of the hash.
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 value is an increasing integer . One may pass any custom label to the method which will be available under the : label key of the hash .
def add_branch!(u, v = nil, l = nil)
        self.next_simple_edge_label_number ||= 0
        label = OpenHash.new(:_weight => self.next_simple_edge_label_number)
        label.label = l unless l.nil?
        super(u, v, label)
        _edge_labeling_inc
      end
def add_branch! ( u , v = nil , l = nil ) self . next_simple_edge_label_number ||= 0 label = OpenHash . new ( :_weight => self . next_simple_edge_label_number ) label . label = l unless l . nil? super ( u , v , label ) _edge_labeling_inc end
Override to handle an iterator for simple edge labeling.
Override to handle an iterator for simple edge labeling .
u
<not_specific>
v
<not_specific>
l
<not_specific>