> Your code does not follow a path but instead you always search from same
> node for every type in the list.
Yeah - that's kind of what I thought the intended behavior was, but
now I understand. Thanks for the explanation.
On Oct 5, 1:51 am, Jozef Wagner wrote:
> Borneos walk is a convenient
My previous link was malformed, correct one is this: http://goo.gl/bGd3g
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient w
Borneos walk is a convenient wrapper
for
http://api.neo4j.org/current/org/neo4j/graphdb/Node.html#getSingleRelationship(org.neo4j.graphdb.RelationshipType,
org.neo4j.graphdb.Direction)
It returns exactly one node. It should be used in situations where you want
to walk from some node by follow
I also want to throw this code out there. https://gist.github.com/1263782
The current walk takes multiple types (I assume the expected behaviour
would be to return the last node for each type), but instead it blows
up. Assuming your reduce works like it should, this code makes that
function work
Well, the problem is that map produces a lazy sequence and you realize this
sequence after connection to neo4j is closed.
This is not a bug of Borneo or Clojure, but it is a programmers mistake. You
have to realize a lazy sequence e.g. with doall before you close the
connection.
It is not good
:sigh: Google removed by [Borneo] tag from the subject heading
On Oct 4, 8:39 pm, Daniel wrote:
> To add to this, (all-nodes) silently populates an empty list (probably
> not what the user wants).
>
> user=> (neo/with-db! "playground" (neo/all-nodes))
> ()
> user=> (neo/with-db! "playground"
To add to this, (all-nodes) silently populates an empty list (probably
not what the user wants).
user=> (neo/with-db! "playground" (neo/all-nodes))
()
user=> (neo/with-db! "playground" (doall (neo/all-nodes)))
(# # #
# # #
# # #)
The major problem, of course, is that we can only be lazy inside t
Borneo get's bit by this bug:
http://lists.neo4j.org/pipermail/user/2011-February/006460.html
Here's a simple example:
(neo/with-db! "playground"
(let [humans (neo/walk (neo/root) :humans)
human-nodes (neo/traverse humans :human)]
(map neo/props human-nodes)))
Nu