Method: MarkovTwitter::MarkovBuilder::Node#linkages

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

#linkagesHash<Symbol, Hash<String, Float>>

Returns the :next and :previous linkages.

  • Outer hash is keyed by the direction (:next, :prev).

  • Inner hash represents possible traversals - keyed by string value, its values are probabilities representing the likelihood of choosing that route.

Returns:

  • (Hash<Symbol, Hash<String, Float>>)

    the :next and :previous linkages.

    • Outer hash is keyed by the direction (:next, :prev).

    • Inner hash represents possible traversals - keyed by string value, its values are probabilities representing the likelihood of choosing that route.



15
16
17
# File 'lib/markov_twitter/markov_builder/node.rb', line 15

def linkages
  @linkages
end