Module: Mongoid::Graph::ClassMethods

Defined in:
lib/mongoid/graph.rb

Instance Method Summary collapse

Instance Method Details

#neighbours_of(node) ⇒ Object



21
22
23
# File 'lib/mongoid/graph.rb', line 21

def neighbours_of(node)
  any_in(node_index: node._neighbours.to_a)
end