Method: MarkovTwitter::MarkovBuilder::Node#add_next_linkage

Defined in:
lib/markov_twitter/markov_builder/node.rb

#add_next_linkage(child_node, mirror_change = true) ⇒ void

This method returns an undefined value.

Adds another node to the :next linkages, updating probabilities.

Parameters:

  • child_node (Node)

    to be added.

  • mirror_change (Boolean) (defaults to: true)

    whether to update the opposite direction.



166
167
168
# File 'lib/markov_twitter/markov_builder/node.rb', line 166

def add_next_linkage(child_node, mirror_change=true)
  add_and_adjust_probabilities(:next, child_node)
end