{"action":"created","comment":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/172895691","pull_request_review_id":101991345,"id":172895691,"diff_hunk":"@@ -0,0 +1,81 @@\n+#include <iostream>\n+#include <vector>\n+\n+class Graph \n+{\n+\tstd::vector<int> empt;\n+\tint ver_;\n+\tstd::vector<std::vector<int>> adj_;\n+\tstd::vector<std::vector<int>> centroidTree_;\n+\tstd::vector<int> sizes_;\n+\tstd::vector<bool> marked_;\n+    \n+\tGraph(int num) :\n+        ver_(num),","path":"code/graph_algorithms/src/centroid_decomposition/centroid_decompostition.hpp","position":14,"original_position":14,"commit_id":"518c8762ef78df68e57964d70ac172f324e00bad","original_commit_id":"518c8762ef78df68e57964d70ac172f324e00bad","user":{"login":"arnavb","id":30810402,"avatar_url":"https://avatars0.githubusercontent.com/u/30810402?v=4","gravatar_id":"","url":"https://api.github.com/users/arnavb","html_url":"https://github.com/arnavb","followers_url":"https://api.github.com/users/arnavb/followers","following_url":"https://api.github.com/users/arnavb/following{/other_user}","gists_url":"https://api.github.com/users/arnavb/gists{/gist_id}","starred_url":"https://api.github.com/users/arnavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnavb/subscriptions","organizations_url":"https://api.github.com/users/arnavb/orgs","repos_url":"https://api.github.com/users/arnavb/repos","events_url":"https://api.github.com/users/arnavb/events{/privacy}","received_events_url":"https://api.github.com/users/arnavb/received_events","type":"User","site_admin":false},"body":"Indent this.","created_at":"2018-03-07T16:12:37Z","updated_at":"2018-03-07T16:17:40Z","html_url":"https://github.com/OpenGenus/cosmos/pull/3362#discussion_r172895691","pull_request_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/172895691"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3362#discussion_r172895691"},"pull_request":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362"}}},"pull_request":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362","id":172723414,"html_url":"https://github.com/OpenGenus/cosmos/pull/3362","diff_url":"https://github.com/OpenGenus/cosmos/pull/3362.diff","patch_url":"https://github.com/OpenGenus/cosmos/pull/3362.patch","issue_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3362","number":3362,"state":"open","locked":false,"title":"Create centroid_decomposition.cpp","user":{"login":"KtlTheBest","id":23432652,"avatar_url":"https://avatars1.githubusercontent.com/u/23432652?v=4","gravatar_id":"","url":"https://api.github.com/users/KtlTheBest","html_url":"https://github.com/KtlTheBest","followers_url":"https://api.github.com/users/KtlTheBest/followers","following_url":"https://api.github.com/users/KtlTheBest/following{/other_user}","gists_url":"https://api.github.com/users/KtlTheBest/gists{/gist_id}","starred_url":"https://api.github.com/users/KtlTheBest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KtlTheBest/subscriptions","organizations_url":"https://api.github.com/users/KtlTheBest/orgs","repos_url":"https://api.github.com/users/KtlTheBest/repos","events_url":"https://api.github.com/users/KtlTheBest/events{/privacy}","received_events_url":"https://api.github.com/users/KtlTheBest/received_events","type":"User","site_admin":false},"body":"**Fixes issue:**\r\n<!-- [Mention the issue number it fixes or add the details of the changes if it doesn't has a specific issue. -->\r\nGot rid of compilation error\r\n\r\n**Changes:**\r\n<!-- Add here what changes were made in this pull request. -->\r\nMade file as main function.\r\nDeleted unnecessary spaces, changed list entries to vector, changed iterator to ranges, variable's name.\r\n\r\n<!-- Make sure to look at the Style Guide for your language in guides/coding_style/language_name \r\n     Note: A coding style guide may not exist for your language, since this is still in beta.\r\n-->\r\n","created_at":"2018-03-04T14:56:56Z","updated_at":"2018-03-07T16:17:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e64d367abc4a9122b382e0e356081fd157b7cbb5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362/commits","review_comments_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362/comments","review_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3362/comments","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/518c8762ef78df68e57964d70ac172f324e00bad","head":{"label":"KtlTheBest:master","ref":"master","sha":"518c8762ef78df68e57964d70ac172f324e00bad","user":{"login":"KtlTheBest","id":23432652,"avatar_url":"https://avatars1.githubusercontent.com/u/23432652?v=4","gravatar_id":"","url":"https://api.github.com/users/KtlTheBest","html_url":"https://github.com/KtlTheBest","followers_url":"https://api.github.com/users/KtlTheBest/followers","following_url":"https://api.github.com/users/KtlTheBest/following{/other_user}","gists_url":"https://api.github.com/users/KtlTheBest/gists{/gist_id}","starred_url":"https://api.github.com/users/KtlTheBest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KtlTheBest/subscriptions","organizations_url":"https://api.github.com/users/KtlTheBest/orgs","repos_url":"https://api.github.com/users/KtlTheBest/repos","events_url":"https://api.github.com/users/KtlTheBest/events{/privacy}","received_events_url":"https://api.github.com/users/KtlTheBest/received_events","type":"User","site_admin":false},"repo":{"id":123704386,"name":"cosmos","full_name":"KtlTheBest/cosmos","owner":{"login":"KtlTheBest","id":23432652,"avatar_url":"https://avatars1.githubusercontent.com/u/23432652?v=4","gravatar_id":"","url":"https://api.github.com/users/KtlTheBest","html_url":"https://github.com/KtlTheBest","followers_url":"https://api.github.com/users/KtlTheBest/followers","following_url":"https://api.github.com/users/KtlTheBest/following{/other_user}","gists_url":"https://api.github.com/users/KtlTheBest/gists{/gist_id}","starred_url":"https://api.github.com/users/KtlTheBest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KtlTheBest/subscriptions","organizations_url":"https://api.github.com/users/KtlTheBest/orgs","repos_url":"https://api.github.com/users/KtlTheBest/repos","events_url":"https://api.github.com/users/KtlTheBest/events{/privacy}","received_events_url":"https://api.github.com/users/KtlTheBest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KtlTheBest/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter","fork":true,"url":"https://api.github.com/repos/KtlTheBest/cosmos","forks_url":"https://api.github.com/repos/KtlTheBest/cosmos/forks","keys_url":"https://api.github.com/repos/KtlTheBest/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KtlTheBest/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KtlTheBest/cosmos/teams","hooks_url":"https://api.github.com/repos/KtlTheBest/cosmos/hooks","issue_events_url":"https://api.github.com/repos/KtlTheBest/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/KtlTheBest/cosmos/events","assignees_url":"https://api.github.com/repos/KtlTheBest/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/KtlTheBest/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/KtlTheBest/cosmos/tags","blobs_url":"https://api.github.com/repos/KtlTheBest/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KtlTheBest/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KtlTheBest/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/KtlTheBest/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KtlTheBest/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/KtlTheBest/cosmos/languages","stargazers_url":"https://api.github.com/repos/KtlTheBest/cosmos/stargazers","contributors_url":"https://api.github.com/repos/KtlTheBest/cosmos/contributors","subscribers_url":"https://api.github.com/repos/KtlTheBest/cosmos/subscribers","subscription_url":"https://api.github.com/repos/KtlTheBest/cosmos/subscription","commits_url":"https://api.github.com/repos/KtlTheBest/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/KtlTheBest/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/KtlTheBest/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/KtlTheBest/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/KtlTheBest/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/KtlTheBest/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KtlTheBest/cosmos/merges","archive_url":"https://api.github.com/repos/KtlTheBest/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KtlTheBest/cosmos/downloads","issues_url":"https://api.github.com/repos/KtlTheBest/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/KtlTheBest/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/KtlTheBest/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/KtlTheBest/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KtlTheBest/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/KtlTheBest/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/KtlTheBest/cosmos/deployments","created_at":"2018-03-03T15:28:15Z","updated_at":"2018-03-03T15:28:20Z","pushed_at":"2018-03-06T04:26:51Z","git_url":"git://github.com/KtlTheBest/cosmos.git","ssh_url":"git@github.com:KtlTheBest/cosmos.git","clone_url":"https://github.com/KtlTheBest/cosmos.git","svn_url":"https://github.com/KtlTheBest/cosmos","homepage":"https://discourse.opengenus.org","size":12724,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenGenus:master","ref":"master","sha":"ed15d334d48a34a0ffba56d4a910559133a861da","user":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"repo":{"id":103749180,"name":"cosmos","full_name":"OpenGenus/cosmos","owner":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenGenus/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter","fork":false,"url":"https://api.github.com/repos/OpenGenus/cosmos","forks_url":"https://api.github.com/repos/OpenGenus/cosmos/forks","keys_url":"https://api.github.com/repos/OpenGenus/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenGenus/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenGenus/cosmos/teams","hooks_url":"https://api.github.com/repos/OpenGenus/cosmos/hooks","issue_events_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/OpenGenus/cosmos/events","assignees_url":"https://api.github.com/repos/OpenGenus/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/OpenGenus/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/OpenGenus/cosmos/tags","blobs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenGenus/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenGenus/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenGenus/cosmos/languages","stargazers_url":"https://api.github.com/repos/OpenGenus/cosmos/stargazers","contributors_url":"https://api.github.com/repos/OpenGenus/cosmos/contributors","subscribers_url":"https://api.github.com/repos/OpenGenus/cosmos/subscribers","subscription_url":"https://api.github.com/repos/OpenGenus/cosmos/subscription","commits_url":"https://api.github.com/repos/OpenGenus/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenGenus/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenGenus/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/OpenGenus/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenGenus/cosmos/merges","archive_url":"https://api.github.com/repos/OpenGenus/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenGenus/cosmos/downloads","issues_url":"https://api.github.com/repos/OpenGenus/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenGenus/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenGenus/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenGenus/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/OpenGenus/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/OpenGenus/cosmos/deployments","created_at":"2017-09-16T12:07:05Z","updated_at":"2018-03-07T12:10:14Z","pushed_at":"2018-03-07T14:52:16Z","git_url":"git://github.com/OpenGenus/cosmos.git","ssh_url":"git@github.com:OpenGenus/cosmos.git","clone_url":"https://github.com/OpenGenus/cosmos.git","svn_url":"https://github.com/OpenGenus/cosmos","homepage":"https://discourse.opengenus.org","size":12790,"stargazers_count":6357,"watchers_count":6357,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1884,"mirror_url":null,"archived":false,"open_issues_count":951,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1884,"open_issues":951,"watchers":6357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3362"},"issue":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3362"},"comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3362/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3362/commits"},"statuses":{"href":"https://api.github.com/repos/OpenGenus/cosmos/statuses/518c8762ef78df68e57964d70ac172f324e00bad"}},"author_association":"NONE"}}
{"actor":{"display_login":"arnavb"}}