how do I find related nodes given a node using Neography in neo4j? -
the documentation doesn't seem work expected.
node #<neography::node>> node.outgoing #<neography::nodetraverser:0x007f5981427f20
i want nodes given relationship, it's unclear based on current documentation:
that syntax builds traversal description until ready .each it:
node.outgoing(:friends).depth(4).nodes.each |node| puts node.map{|n| n.name }.join(' => friends => ') end
Comments
Post a Comment