{"action":"created","issue":{"url":"https://api.github.com/repos/tinkerpop/tinkerpop3/issues/236","labels_url":"https://api.github.com/repos/tinkerpop/tinkerpop3/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/tinkerpop/tinkerpop3/issues/236/comments","events_url":"https://api.github.com/repos/tinkerpop/tinkerpop3/issues/236/events","html_url":"https://github.com/tinkerpop/tinkerpop3/issues/236","id":46008366,"number":236,"title":"teleport()-step (fun thought -- proposal).","user":{"login":"okram","id":148925,"avatar_url":"https://avatars.githubusercontent.com/u/148925?v=3","gravatar_id":"","url":"https://api.github.com/users/okram","html_url":"https://github.com/okram","followers_url":"https://api.github.com/users/okram/followers","following_url":"https://api.github.com/users/okram/following{/other_user}","gists_url":"https://api.github.com/users/okram/gists{/gist_id}","starred_url":"https://api.github.com/users/okram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okram/subscriptions","organizations_url":"https://api.github.com/users/okram/orgs","repos_url":"https://api.github.com/users/okram/repos","events_url":"https://api.github.com/users/okram/events{/privacy}","received_events_url":"https://api.github.com/users/okram/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tinkerpop/tinkerpop3/labels/enhancement","name":"enhancement","color":"009800"},{"url":"https://api.github.com/repos/tinkerpop/tinkerpop3/labels/process","name":"process","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"okram","id":148925,"avatar_url":"https://avatars.githubusercontent.com/u/148925?v=3","gravatar_id":"","url":"https://api.github.com/users/okram","html_url":"https://github.com/okram","followers_url":"https://api.github.com/users/okram/followers","following_url":"https://api.github.com/users/okram/following{/other_user}","gists_url":"https://api.github.com/users/okram/gists{/gist_id}","starred_url":"https://api.github.com/users/okram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okram/subscriptions","organizations_url":"https://api.github.com/users/okram/orgs","repos_url":"https://api.github.com/users/okram/repos","events_url":"https://api.github.com/users/okram/events{/privacy}","received_events_url":"https://api.github.com/users/okram/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-10-16T16:42:35Z","updated_at":"2015-01-26T23:52:20Z","closed_at":"2015-01-26T23:52:20Z","body":"```groovy\r\ng.V.out.out.teleport\r\n```\r\n\r\nWhat does this do? When a `Traverser<S>` reaches `teleport()` a random step in the traversal is selected and the `Traverser<S>` is sent there to continue its walk. If `teleport()` selects itself, it is passed onto the next stage for processing (in other words, `break`).\r\n\r\n```groovy\r\ng.V.out.teleport.out.out.teleport.path\r\n```\r\n\r\nThe above would yield some crazy paths (varying lengths, cycles, indeterminable halt, etc.). \r\n\r\nI don't know the practical application, but its easy to implement with the new `BranchStep` class :D. Any good thoughts on uses? @dkuppitz @mbroecheler @spmallette  ... One thought:\r\n\r\n```groovy\r\ng.V.out.simplePath.teleport\r\n```\r\n\r\nThe above would yield a random, non-cycling walk. Wikipedia calls it a \"loop erased random walk\": http://en.wikipedia.org/wiki/Loop-erased_random_walk"},"comment":{"url":"https://api.github.com/repos/tinkerpop/tinkerpop3/issues/comments/71563707","html_url":"https://github.com/tinkerpop/tinkerpop3/issues/236#issuecomment-71563707","issue_url":"https://api.github.com/repos/tinkerpop/tinkerpop3/issues/236","id":71563707,"user":{"login":"okram","id":148925,"avatar_url":"https://avatars.githubusercontent.com/u/148925?v=3","gravatar_id":"","url":"https://api.github.com/users/okram","html_url":"https://github.com/okram","followers_url":"https://api.github.com/users/okram/followers","following_url":"https://api.github.com/users/okram/following{/other_user}","gists_url":"https://api.github.com/users/okram/gists{/gist_id}","starred_url":"https://api.github.com/users/okram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okram/subscriptions","organizations_url":"https://api.github.com/users/okram/orgs","repos_url":"https://api.github.com/users/okram/repos","events_url":"https://api.github.com/users/okram/events{/privacy}","received_events_url":"https://api.github.com/users/okram/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T23:52:20Z","updated_at":"2015-01-26T23:52:20Z","body":"will not due."}}