From 26b8ddeab47893cc30cc83f8835e6cf43d0aed9c Mon Sep 17 00:00:00 2001 From: Joey Freund Date: Fri, 19 Jun 2015 11:18:40 -0400 Subject: [PATCH] Update routes_traversals.md Minor edits (formatting) --- pages/routes/routes_traversals.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pages/routes/routes_traversals.md b/pages/routes/routes_traversals.md index f67479f2..ae7da7dd 100644 --- a/pages/routes/routes_traversals.md +++ b/pages/routes/routes_traversals.md @@ -136,21 +136,21 @@ Usage: > _Important:_ Keeping track of paths requires more memory. If you do not use `path` in the while-block, you should follow the first usage pattern. -- `route` and `arbitrary_steps(route)` must be routes of the same type. - E.g. If `route` is a vertex-route, but `arbitrary_steps(route)` results in an edge-route, Pacer will raise an error. -- The `while` block arguments are: - - `element` - An element going into the while-block. - - `depth` - The number of times Pacer applied the loop block, in order to get to this element. - Source elements have a depth of 0 - - `path` - An array of vertices and edges, the full path to this element. -- The `while` block controls the loop by returning one of these values: - - `:loop` = do not emit the element into the results of this traversal, but feed it back through the loop. - - `:emit` = emit the element into the results of this traversal, but do not feed it back through the loop. - - `:loop_and_emit` = emit the element and feed it back through the loop. - - `:emit_and_loop` = same as `:loop_and_emit` (because we can never remember which one to use). - - `nil` or `false` = don't emit this element and don't feed it back through the loop. - +`route` and `arbitrary_steps(route)` must be routes of the same type. +E.g. If `route` is a vertex-route, but `arbitrary_steps(route)` results in an edge-route, Pacer will raise an error. +The `while` block arguments are: + - `element` - An element going into the while-block. + - `depth` - The number of times Pacer applied the loop block, in order to get to this element. + Source elements have a depth of 0 + - `path` - An array of vertices and edges, the full path to this element. + +The `while` block controls the loop by returning one of these values: + - `:loop` = do not emit the element into the results of this traversal, but feed it back through the loop. + - `:emit` = emit the element into the results of this traversal, but do not feed it back through the loop. + - `:loop_and_emit` = emit the element and feed it back through the loop. + - `:emit_and_loop` = same as `:loop_and_emit` (because we can never remember which one to use). + - `nil` or `false` = don't emit this element and don't feed it back through the loop.