Module: MongoidGraph

Defined in:
lib/mongoid-graph.rb,
lib/mongoid-graph/version.rb

Overview

Represents a Undirected general graph stored via Mongo

Example

first_node = Node.new(node_index: 1)
second_node = Node.new(node_index: 2)
first_node.connect_to second_node
first_node.save!
second_node.save!
Node.neighbours_of(first_node).size.should == 1

Constant Summary collapse

VERSION =
"0.0.5"