{"action":"created","comment":{"url":"https://api.github.com/repos/networkx/networkx/pulls/comments/26607716","id":26607716,"diff_hunk":"@@ -121,6 +121,19 @@ def test_descendants(self):\n         assert_equal(descendants(G, 3), set())\n         assert_raises(nx.NetworkXError, descendants, G, 8)\n \n+    def test_transitive_closure(self):\n+        G = nx.DiGraph([(1, 2), (2, 3), (3, 4)])\n+        transitive_closure = nx.algorithms.dag.transitive_closure\n+        assert_equal(transitive_closure(G).edges(), [(1, 2), (1, 3),\n+            (1, 4), (2, 3), (2, 4), (3, 4)])\n+        H = nx.Graph([(1, 2), (2, 3), (3, 4)])\n+        assert_raises(nx.NetworkXError, transitive_closure, H)\n+\n+    def test_antichain_generator(self):\n+        G = nx.DiGraph([(1, 2), (2, 3), (3, 4)])\n+        antichain_generator = nx.algorithms.dag.antichain_generator\n+        assert_equal(list(antichain_generator(G)), [[], [4], [3], [2], [1]])\n+","path":"networkx/algorithms/tests/test_dag.py","position":16,"original_position":16,"commit_id":"87b2f0c2d4f665c8fbd796edb3fceca9aee4bb89","original_commit_id":"87b2f0c2d4f665c8fbd796edb3fceca9aee4bb89","user":{"login":"MridulS","id":5363860,"avatar_url":"https://avatars.githubusercontent.com/u/5363860?v=3","gravatar_id":"","url":"https://api.github.com/users/MridulS","html_url":"https://github.com/MridulS","followers_url":"https://api.github.com/users/MridulS/followers","following_url":"https://api.github.com/users/MridulS/following{/other_user}","gists_url":"https://api.github.com/users/MridulS/gists{/gist_id}","starred_url":"https://api.github.com/users/MridulS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MridulS/subscriptions","organizations_url":"https://api.github.com/users/MridulS/orgs","repos_url":"https://api.github.com/users/MridulS/repos","events_url":"https://api.github.com/users/MridulS/events{/privacy}","received_events_url":"https://api.github.com/users/MridulS/received_events","type":"User","site_admin":false},"body":"The tests given in the references are almost same.","created_at":"2015-03-17T19:34:11Z","updated_at":"2015-03-17T19:34:11Z","html_url":"https://github.com/networkx/networkx/pull/1413#discussion_r26607716","pull_request_url":"https://api.github.com/repos/networkx/networkx/pulls/1413","_links":{"self":{"href":"https://api.github.com/repos/networkx/networkx/pulls/comments/26607716"},"html":{"href":"https://github.com/networkx/networkx/pull/1413#discussion_r26607716"},"pull_request":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1413"}}},"pull_request":{"url":"https://api.github.com/repos/networkx/networkx/pulls/1413","id":31367253,"html_url":"https://github.com/networkx/networkx/pull/1413","diff_url":"https://github.com/networkx/networkx/pull/1413.diff","patch_url":"https://github.com/networkx/networkx/pull/1413.patch","issue_url":"https://api.github.com/repos/networkx/networkx/issues/1413","number":1413,"state":"open","locked":false,"title":"Expose transitive_clousure and antichains in the public API","user":{"login":"MridulS","id":5363860,"avatar_url":"https://avatars.githubusercontent.com/u/5363860?v=3","gravatar_id":"","url":"https://api.github.com/users/MridulS","html_url":"https://github.com/MridulS","followers_url":"https://api.github.com/users/MridulS/followers","following_url":"https://api.github.com/users/MridulS/following{/other_user}","gists_url":"https://api.github.com/users/MridulS/gists{/gist_id}","starred_url":"https://api.github.com/users/MridulS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MridulS/subscriptions","organizations_url":"https://api.github.com/users/MridulS/orgs","repos_url":"https://api.github.com/users/MridulS/repos","events_url":"https://api.github.com/users/MridulS/events{/privacy}","received_events_url":"https://api.github.com/users/MridulS/received_events","type":"User","site_admin":false},"body":"@jtorrents #1412 ","created_at":"2015-03-17T19:04:17Z","updated_at":"2015-03-17T19:34:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2b52552c7b1cc95b9a222ab9954db8045000f16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/networkx/networkx/pulls/1413/commits","review_comments_url":"https://api.github.com/repos/networkx/networkx/pulls/1413/comments","review_comment_url":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/networkx/networkx/issues/1413/comments","statuses_url":"https://api.github.com/repos/networkx/networkx/statuses/87b2f0c2d4f665c8fbd796edb3fceca9aee4bb89","head":{"label":"MridulS:expose_transitive_closure","ref":"expose_transitive_closure","sha":"87b2f0c2d4f665c8fbd796edb3fceca9aee4bb89","user":{"login":"MridulS","id":5363860,"avatar_url":"https://avatars.githubusercontent.com/u/5363860?v=3","gravatar_id":"","url":"https://api.github.com/users/MridulS","html_url":"https://github.com/MridulS","followers_url":"https://api.github.com/users/MridulS/followers","following_url":"https://api.github.com/users/MridulS/following{/other_user}","gists_url":"https://api.github.com/users/MridulS/gists{/gist_id}","starred_url":"https://api.github.com/users/MridulS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MridulS/subscriptions","organizations_url":"https://api.github.com/users/MridulS/orgs","repos_url":"https://api.github.com/users/MridulS/repos","events_url":"https://api.github.com/users/MridulS/events{/privacy}","received_events_url":"https://api.github.com/users/MridulS/received_events","type":"User","site_admin":false},"repo":{"id":30251932,"name":"networkx","full_name":"MridulS/networkx","owner":{"login":"MridulS","id":5363860,"avatar_url":"https://avatars.githubusercontent.com/u/5363860?v=3","gravatar_id":"","url":"https://api.github.com/users/MridulS","html_url":"https://github.com/MridulS","followers_url":"https://api.github.com/users/MridulS/followers","following_url":"https://api.github.com/users/MridulS/following{/other_user}","gists_url":"https://api.github.com/users/MridulS/gists{/gist_id}","starred_url":"https://api.github.com/users/MridulS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MridulS/subscriptions","organizations_url":"https://api.github.com/users/MridulS/orgs","repos_url":"https://api.github.com/users/MridulS/repos","events_url":"https://api.github.com/users/MridulS/events{/privacy}","received_events_url":"https://api.github.com/users/MridulS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MridulS/networkx","description":"Official NetworkX source code repository.  ","fork":true,"url":"https://api.github.com/repos/MridulS/networkx","forks_url":"https://api.github.com/repos/MridulS/networkx/forks","keys_url":"https://api.github.com/repos/MridulS/networkx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MridulS/networkx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MridulS/networkx/teams","hooks_url":"https://api.github.com/repos/MridulS/networkx/hooks","issue_events_url":"https://api.github.com/repos/MridulS/networkx/issues/events{/number}","events_url":"https://api.github.com/repos/MridulS/networkx/events","assignees_url":"https://api.github.com/repos/MridulS/networkx/assignees{/user}","branches_url":"https://api.github.com/repos/MridulS/networkx/branches{/branch}","tags_url":"https://api.github.com/repos/MridulS/networkx/tags","blobs_url":"https://api.github.com/repos/MridulS/networkx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MridulS/networkx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MridulS/networkx/git/refs{/sha}","trees_url":"https://api.github.com/repos/MridulS/networkx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MridulS/networkx/statuses/{sha}","languages_url":"https://api.github.com/repos/MridulS/networkx/languages","stargazers_url":"https://api.github.com/repos/MridulS/networkx/stargazers","contributors_url":"https://api.github.com/repos/MridulS/networkx/contributors","subscribers_url":"https://api.github.com/repos/MridulS/networkx/subscribers","subscription_url":"https://api.github.com/repos/MridulS/networkx/subscription","commits_url":"https://api.github.com/repos/MridulS/networkx/commits{/sha}","git_commits_url":"https://api.github.com/repos/MridulS/networkx/git/commits{/sha}","comments_url":"https://api.github.com/repos/MridulS/networkx/comments{/number}","issue_comment_url":"https://api.github.com/repos/MridulS/networkx/issues/comments{/number}","contents_url":"https://api.github.com/repos/MridulS/networkx/contents/{+path}","compare_url":"https://api.github.com/repos/MridulS/networkx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MridulS/networkx/merges","archive_url":"https://api.github.com/repos/MridulS/networkx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MridulS/networkx/downloads","issues_url":"https://api.github.com/repos/MridulS/networkx/issues{/number}","pulls_url":"https://api.github.com/repos/MridulS/networkx/pulls{/number}","milestones_url":"https://api.github.com/repos/MridulS/networkx/milestones{/number}","notifications_url":"https://api.github.com/repos/MridulS/networkx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MridulS/networkx/labels{/name}","releases_url":"https://api.github.com/repos/MridulS/networkx/releases{/id}","created_at":"2015-02-03T16:19:52Z","updated_at":"2015-03-17T17:47:43Z","pushed_at":"2015-03-17T19:03:24Z","git_url":"git://github.com/MridulS/networkx.git","ssh_url":"git@github.com:MridulS/networkx.git","clone_url":"https://github.com/MridulS/networkx.git","svn_url":"https://github.com/MridulS/networkx","homepage":"http://networkx.github.io","size":12621,"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":"32e32e02465808f42bff4928245ec849e3aba487","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":"2015-03-17T15:58:02Z","pushed_at":"2015-03-17T03:36:15Z","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":21402,"stargazers_count":1275,"watchers_count":1275,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":403,"mirror_url":null,"open_issues_count":167,"forks":403,"open_issues":167,"watchers":1275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1413"},"html":{"href":"https://github.com/networkx/networkx/pull/1413"},"issue":{"href":"https://api.github.com/repos/networkx/networkx/issues/1413"},"comments":{"href":"https://api.github.com/repos/networkx/networkx/issues/1413/comments"},"review_comments":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1413/comments"},"review_comment":{"href":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1413/commits"},"statuses":{"href":"https://api.github.com/repos/networkx/networkx/statuses/87b2f0c2d4f665c8fbd796edb3fceca9aee4bb89"}}}}