-
Hi Eric! Percival is cool! I'm confused by the walk example:
Why are both of these cases needed? It looks to me that the clauses are redundant, but commenting out the second clause loses answers. What am I missing? Thanks! --Will |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks for the question! The second rule is needed because you want to find all nodes to start paths in the graph. If your only input relations are edges, then you can find the nodes in the graph implicitly by taking all of the identifiers that are referenced as the start or end of an edge. Also, now that you point it out, this code sample is a bit misleading, as the underscores don't actually do anything - I'll fix this. It should say
|
Beta Was this translation helpful? Give feedback.
-
Thanks, Eric! I'm still not sure I understand. Would either or both of
be equivalent to:
? |
Beta Was this translation helpful? Give feedback.
Thanks for the question! The second rule is needed because you want to find all nodes to start paths in the graph. If your only input relations are edges, then you can find the nodes in the graph implicitly by taking all of the identifiers that are referenced as the start or end of an edge.
Also, now that you point it out, this code sample is a bit misleading, as the underscores don't actually do anything - I'll fix this. It should say