{"action":"created","comment":{"url":"https://api.github.com/repos/networkx/networkx/pulls/comments/49659826","id":49659826,"diff_hunk":"@@ -239,18 +268,18 @@ def dfs_preorder_nodes(G, source=None):\n     -----\n     Based on http://www.ics.uci.edu/~eppstein/PADS/DFS.py\n     by D. Eppstein, July 2004.\n-\n+    https://en.wikipedia.org/wiki/Depth-limited_search\n     If a source is not specified then a source is chosen arbitrarily and\n     repeatedly until all components in the graph are searched.\n     \"\"\"\n-    pre=(v for u,v,d in nx.dfs_labeled_edges(G,source=source)\n-         if d['dir']=='forward')\n+    pre = (v for u, v, d in nx.dfs_labeled_edges(G, source=source,","path":"networkx/algorithms/traversal/depth_first_search.py","position":219,"original_position":219,"commit_id":"93260ff5223af5417ddb28adf821d410652e6a98","original_commit_id":"93260ff5223af5417ddb28adf821d410652e6a98","user":{"login":"jfinkels","id":121755,"avatar_url":"https://avatars.githubusercontent.com/u/121755?v=3","gravatar_id":"","url":"https://api.github.com/users/jfinkels","html_url":"https://github.com/jfinkels","followers_url":"https://api.github.com/users/jfinkels/followers","following_url":"https://api.github.com/users/jfinkels/following{/other_user}","gists_url":"https://api.github.com/users/jfinkels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfinkels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfinkels/subscriptions","organizations_url":"https://api.github.com/users/jfinkels/orgs","repos_url":"https://api.github.com/users/jfinkels/repos","events_url":"https://api.github.com/users/jfinkels/events{/privacy}","received_events_url":"https://api.github.com/users/jfinkels/received_events","type":"User","site_admin":false},"body":"Same comment as above about splitting this into two lines.","created_at":"2016-01-13T22:18:20Z","updated_at":"2016-01-13T22:18:20Z","html_url":"https://github.com/networkx/networkx/pull/1928#discussion_r49659826","pull_request_url":"https://api.github.com/repos/networkx/networkx/pulls/1928","_links":{"self":{"href":"https://api.github.com/repos/networkx/networkx/pulls/comments/49659826"},"html":{"href":"https://github.com/networkx/networkx/pull/1928#discussion_r49659826"},"pull_request":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1928"}}},"pull_request":{"url":"https://api.github.com/repos/networkx/networkx/pulls/1928","id":55624108,"html_url":"https://github.com/networkx/networkx/pull/1928","diff_url":"https://github.com/networkx/networkx/pull/1928.diff","patch_url":"https://github.com/networkx/networkx/pull/1928.patch","issue_url":"https://api.github.com/repos/networkx/networkx/issues/1928","number":1928,"state":"open","locked":false,"title":"Adding Depth Limited Search","user":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"body":"Adding Depth Limited search as per issue #1912 \r\n@dschult @jfinkels please take a look.","created_at":"2016-01-11T13:52:39Z","updated_at":"2016-01-13T22:18:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f2faf92eff0014117666162aef3a82d29e66e61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/networkx/networkx/pulls/1928/commits","review_comments_url":"https://api.github.com/repos/networkx/networkx/pulls/1928/comments","review_comment_url":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/networkx/networkx/issues/1928/comments","statuses_url":"https://api.github.com/repos/networkx/networkx/statuses/93260ff5223af5417ddb28adf821d410652e6a98","head":{"label":"Arafatk:depth_limited_search","ref":"depth_limited_search","sha":"93260ff5223af5417ddb28adf821d410652e6a98","user":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"repo":{"id":48914420,"name":"networkx","full_name":"Arafatk/networkx","owner":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arafatk/networkx","description":"Official NetworkX source code repository.  ","fork":true,"url":"https://api.github.com/repos/Arafatk/networkx","forks_url":"https://api.github.com/repos/Arafatk/networkx/forks","keys_url":"https://api.github.com/repos/Arafatk/networkx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arafatk/networkx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arafatk/networkx/teams","hooks_url":"https://api.github.com/repos/Arafatk/networkx/hooks","issue_events_url":"https://api.github.com/repos/Arafatk/networkx/issues/events{/number}","events_url":"https://api.github.com/repos/Arafatk/networkx/events","assignees_url":"https://api.github.com/repos/Arafatk/networkx/assignees{/user}","branches_url":"https://api.github.com/repos/Arafatk/networkx/branches{/branch}","tags_url":"https://api.github.com/repos/Arafatk/networkx/tags","blobs_url":"https://api.github.com/repos/Arafatk/networkx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arafatk/networkx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arafatk/networkx/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arafatk/networkx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arafatk/networkx/statuses/{sha}","languages_url":"https://api.github.com/repos/Arafatk/networkx/languages","stargazers_url":"https://api.github.com/repos/Arafatk/networkx/stargazers","contributors_url":"https://api.github.com/repos/Arafatk/networkx/contributors","subscribers_url":"https://api.github.com/repos/Arafatk/networkx/subscribers","subscription_url":"https://api.github.com/repos/Arafatk/networkx/subscription","commits_url":"https://api.github.com/repos/Arafatk/networkx/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arafatk/networkx/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arafatk/networkx/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arafatk/networkx/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arafatk/networkx/contents/{+path}","compare_url":"https://api.github.com/repos/Arafatk/networkx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arafatk/networkx/merges","archive_url":"https://api.github.com/repos/Arafatk/networkx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arafatk/networkx/downloads","issues_url":"https://api.github.com/repos/Arafatk/networkx/issues{/number}","pulls_url":"https://api.github.com/repos/Arafatk/networkx/pulls{/number}","milestones_url":"https://api.github.com/repos/Arafatk/networkx/milestones{/number}","notifications_url":"https://api.github.com/repos/Arafatk/networkx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arafatk/networkx/labels{/name}","releases_url":"https://api.github.com/repos/Arafatk/networkx/releases{/id}","created_at":"2016-01-02T15:40:17Z","updated_at":"2016-01-11T13:40:39Z","pushed_at":"2016-01-13T18:05:27Z","git_url":"git://github.com/Arafatk/networkx.git","ssh_url":"git@github.com:Arafatk/networkx.git","clone_url":"https://github.com/Arafatk/networkx.git","svn_url":"https://github.com/Arafatk/networkx","homepage":"http://networkx.github.io","size":13529,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"networkx:master","ref":"master","sha":"984eac8f7c37223bd2dd2474080d3f0d3ca626d5","user":{"login":"networkx","id":388785,"avatar_url":"https://avatars.githubusercontent.com/u/388785?v=3","gravatar_id":"","url":"https://api.github.com/users/networkx","html_url":"https://github.com/networkx","followers_url":"https://api.github.com/users/networkx/followers","following_url":"https://api.github.com/users/networkx/following{/other_user}","gists_url":"https://api.github.com/users/networkx/gists{/gist_id}","starred_url":"https://api.github.com/users/networkx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networkx/subscriptions","organizations_url":"https://api.github.com/users/networkx/orgs","repos_url":"https://api.github.com/users/networkx/repos","events_url":"https://api.github.com/users/networkx/events{/privacy}","received_events_url":"https://api.github.com/users/networkx/received_events","type":"Organization","site_admin":false},"repo":{"id":890377,"name":"networkx","full_name":"networkx/networkx","owner":{"login":"networkx","id":388785,"avatar_url":"https://avatars.githubusercontent.com/u/388785?v=3","gravatar_id":"","url":"https://api.github.com/users/networkx","html_url":"https://github.com/networkx","followers_url":"https://api.github.com/users/networkx/followers","following_url":"https://api.github.com/users/networkx/following{/other_user}","gists_url":"https://api.github.com/users/networkx/gists{/gist_id}","starred_url":"https://api.github.com/users/networkx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networkx/subscriptions","organizations_url":"https://api.github.com/users/networkx/orgs","repos_url":"https://api.github.com/users/networkx/repos","events_url":"https://api.github.com/users/networkx/events{/privacy}","received_events_url":"https://api.github.com/users/networkx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/networkx/networkx","description":"Official NetworkX source code repository.  ","fork":false,"url":"https://api.github.com/repos/networkx/networkx","forks_url":"https://api.github.com/repos/networkx/networkx/forks","keys_url":"https://api.github.com/repos/networkx/networkx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/networkx/networkx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/networkx/networkx/teams","hooks_url":"https://api.github.com/repos/networkx/networkx/hooks","issue_events_url":"https://api.github.com/repos/networkx/networkx/issues/events{/number}","events_url":"https://api.github.com/repos/networkx/networkx/events","assignees_url":"https://api.github.com/repos/networkx/networkx/assignees{/user}","branches_url":"https://api.github.com/repos/networkx/networkx/branches{/branch}","tags_url":"https://api.github.com/repos/networkx/networkx/tags","blobs_url":"https://api.github.com/repos/networkx/networkx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/networkx/networkx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/networkx/networkx/git/refs{/sha}","trees_url":"https://api.github.com/repos/networkx/networkx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/networkx/networkx/statuses/{sha}","languages_url":"https://api.github.com/repos/networkx/networkx/languages","stargazers_url":"https://api.github.com/repos/networkx/networkx/stargazers","contributors_url":"https://api.github.com/repos/networkx/networkx/contributors","subscribers_url":"https://api.github.com/repos/networkx/networkx/subscribers","subscription_url":"https://api.github.com/repos/networkx/networkx/subscription","commits_url":"https://api.github.com/repos/networkx/networkx/commits{/sha}","git_commits_url":"https://api.github.com/repos/networkx/networkx/git/commits{/sha}","comments_url":"https://api.github.com/repos/networkx/networkx/comments{/number}","issue_comment_url":"https://api.github.com/repos/networkx/networkx/issues/comments{/number}","contents_url":"https://api.github.com/repos/networkx/networkx/contents/{+path}","compare_url":"https://api.github.com/repos/networkx/networkx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/networkx/networkx/merges","archive_url":"https://api.github.com/repos/networkx/networkx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/networkx/networkx/downloads","issues_url":"https://api.github.com/repos/networkx/networkx/issues{/number}","pulls_url":"https://api.github.com/repos/networkx/networkx/pulls{/number}","milestones_url":"https://api.github.com/repos/networkx/networkx/milestones{/number}","notifications_url":"https://api.github.com/repos/networkx/networkx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/networkx/networkx/labels{/name}","releases_url":"https://api.github.com/repos/networkx/networkx/releases{/id}","created_at":"2010-09-06T00:53:44Z","updated_at":"2016-01-13T00:15:45Z","pushed_at":"2016-01-13T18:05:27Z","git_url":"git://github.com/networkx/networkx.git","ssh_url":"git@github.com:networkx/networkx.git","clone_url":"https://github.com/networkx/networkx.git","svn_url":"https://github.com/networkx/networkx","homepage":"http://networkx.github.io","size":18805,"stargazers_count":1836,"watchers_count":1836,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":576,"mirror_url":null,"open_issues_count":268,"forks":576,"open_issues":268,"watchers":1836,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1928"},"html":{"href":"https://github.com/networkx/networkx/pull/1928"},"issue":{"href":"https://api.github.com/repos/networkx/networkx/issues/1928"},"comments":{"href":"https://api.github.com/repos/networkx/networkx/issues/1928/comments"},"review_comments":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1928/comments"},"review_comment":{"href":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1928/commits"},"statuses":{"href":"https://api.github.com/repos/networkx/networkx/statuses/93260ff5223af5417ddb28adf821d410652e6a98"}}}}