new_rel.start_node # Get the start/from node of a relationship
new_rel.end_node # Get the end/to node of a relationship
new_rel.other_node(n2) # Get the other node of a relationship
+ new_rel.attributes # Get the attributes of the relationship as an array
existing_rel = Neography::Relationship.load(12) # Get an existing relationship by id
existing_rel.del # Delete a relationship
def attributes
attrs = self.methods - OpenStruct.instance_methods - Neography::Relationship.instance_methods
- attrs.values_at(*self.each_index.select {|i| i.odd?})
+ attrs.values_at(*attrs.each_index.select {|i| i.even?})
end
def other_node(node)
end
end
-end
\ No newline at end of file
+end