{"action":"created","comment":{"url":"https://api.github.com/repos/halucinka/algorithms/pulls/comments/166758442","pull_request_review_id":94872724,"id":166758442,"diff_hunk":"@@ -0,0 +1,47 @@\n+package DFS_using_recursion\n+\n+import (\n+\t\"testing\"\n+\n+\t. \"github.com/smartystreets/goconvey/convey\"\n+)\n+\n+func Test_GetNumberOfComponents_recursive(t *testing.T) {\n+\n+\tConvey(\"Test GetNumberOfComponents_recursive - one component\", t, func() {\n+\t\tgraph := [][]int{\n+\t\t\t{1, 2},\n+\t\t\t{0, 2},\n+\t\t\t{0, 3},\n+\t\t\t{2},\n+\t\t}\n+\t\tSo(GetNumberOfComponents_recursive(graph), ShouldEqual, 1)\n+\t})\n+\tConvey(\"Test GetNumberOfComponents_recursive - 2 components, isolated vertex\", t, func() {\n+\t\tgraph := [][]int{\n+\t\t\t{1, 2},\n+\t\t\t{0, 2},\n+\t\t\t{0},","path":"DFS/DFS_using_recursion/depth_first_search_test.go","position":24,"original_position":24,"commit_id":"71422d8d0a20fbb15ae99f5b096c87229e64d8c8","original_commit_id":"71422d8d0a20fbb15ae99f5b096c87229e64d8c8","user":{"login":"DavidPal","id":15113745,"avatar_url":"https://avatars3.githubusercontent.com/u/15113745?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidPal","html_url":"https://github.com/DavidPal","followers_url":"https://api.github.com/users/DavidPal/followers","following_url":"https://api.github.com/users/DavidPal/following{/other_user}","gists_url":"https://api.github.com/users/DavidPal/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidPal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidPal/subscriptions","organizations_url":"https://api.github.com/users/DavidPal/orgs","repos_url":"https://api.github.com/users/DavidPal/repos","events_url":"https://api.github.com/users/DavidPal/events{/privacy}","received_events_url":"https://api.github.com/users/DavidPal/received_events","type":"User","site_admin":false},"body":"Zmen {0} na {0,1}.\r\nTvoj graf ma byt neorientovany. Pre orientovane grafy je pocet komponentov nie dobre definovany. A tvoj algoritmus ocaka neorientovany graf.","created_at":"2018-02-07T21:17:48Z","updated_at":"2018-02-07T21:22:38Z","html_url":"https://github.com/halucinka/algorithms/pull/15#discussion_r166758442","pull_request_url":"https://api.github.com/repos/halucinka/algorithms/pulls/15","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/halucinka/algorithms/pulls/comments/166758442"},"html":{"href":"https://github.com/halucinka/algorithms/pull/15#discussion_r166758442"},"pull_request":{"href":"https://api.github.com/repos/halucinka/algorithms/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/halucinka/algorithms/pulls/15","id":167789706,"html_url":"https://github.com/halucinka/algorithms/pull/15","diff_url":"https://github.com/halucinka/algorithms/pull/15.diff","patch_url":"https://github.com/halucinka/algorithms/pull/15.patch","issue_url":"https://api.github.com/repos/halucinka/algorithms/issues/15","number":15,"state":"open","locked":false,"title":"New/dfs/components","user":{"login":"halucinka","id":1664386,"avatar_url":"https://avatars0.githubusercontent.com/u/1664386?v=4","gravatar_id":"","url":"https://api.github.com/users/halucinka","html_url":"https://github.com/halucinka","followers_url":"https://api.github.com/users/halucinka/followers","following_url":"https://api.github.com/users/halucinka/following{/other_user}","gists_url":"https://api.github.com/users/halucinka/gists{/gist_id}","starred_url":"https://api.github.com/users/halucinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halucinka/subscriptions","organizations_url":"https://api.github.com/users/halucinka/orgs","repos_url":"https://api.github.com/users/halucinka/repos","events_url":"https://api.github.com/users/halucinka/events{/privacy}","received_events_url":"https://api.github.com/users/halucinka/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-07T19:42:25Z","updated_at":"2018-02-07T21:22:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ceb204c2719d5869e14e9b3e644e7e88f24d7da6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/halucinka/algorithms/pulls/15/commits","review_comments_url":"https://api.github.com/repos/halucinka/algorithms/pulls/15/comments","review_comment_url":"https://api.github.com/repos/halucinka/algorithms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/halucinka/algorithms/issues/15/comments","statuses_url":"https://api.github.com/repos/halucinka/algorithms/statuses/71422d8d0a20fbb15ae99f5b096c87229e64d8c8","head":{"label":"halucinka:new/DFS/components","ref":"new/DFS/components","sha":"71422d8d0a20fbb15ae99f5b096c87229e64d8c8","user":{"login":"halucinka","id":1664386,"avatar_url":"https://avatars0.githubusercontent.com/u/1664386?v=4","gravatar_id":"","url":"https://api.github.com/users/halucinka","html_url":"https://github.com/halucinka","followers_url":"https://api.github.com/users/halucinka/followers","following_url":"https://api.github.com/users/halucinka/following{/other_user}","gists_url":"https://api.github.com/users/halucinka/gists{/gist_id}","starred_url":"https://api.github.com/users/halucinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halucinka/subscriptions","organizations_url":"https://api.github.com/users/halucinka/orgs","repos_url":"https://api.github.com/users/halucinka/repos","events_url":"https://api.github.com/users/halucinka/events{/privacy}","received_events_url":"https://api.github.com/users/halucinka/received_events","type":"User","site_admin":false},"repo":{"id":119183255,"name":"algorithms","full_name":"halucinka/algorithms","owner":{"login":"halucinka","id":1664386,"avatar_url":"https://avatars0.githubusercontent.com/u/1664386?v=4","gravatar_id":"","url":"https://api.github.com/users/halucinka","html_url":"https://github.com/halucinka","followers_url":"https://api.github.com/users/halucinka/followers","following_url":"https://api.github.com/users/halucinka/following{/other_user}","gists_url":"https://api.github.com/users/halucinka/gists{/gist_id}","starred_url":"https://api.github.com/users/halucinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halucinka/subscriptions","organizations_url":"https://api.github.com/users/halucinka/orgs","repos_url":"https://api.github.com/users/halucinka/repos","events_url":"https://api.github.com/users/halucinka/events{/privacy}","received_events_url":"https://api.github.com/users/halucinka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halucinka/algorithms","description":null,"fork":false,"url":"https://api.github.com/repos/halucinka/algorithms","forks_url":"https://api.github.com/repos/halucinka/algorithms/forks","keys_url":"https://api.github.com/repos/halucinka/algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halucinka/algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halucinka/algorithms/teams","hooks_url":"https://api.github.com/repos/halucinka/algorithms/hooks","issue_events_url":"https://api.github.com/repos/halucinka/algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/halucinka/algorithms/events","assignees_url":"https://api.github.com/repos/halucinka/algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/halucinka/algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/halucinka/algorithms/tags","blobs_url":"https://api.github.com/repos/halucinka/algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halucinka/algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halucinka/algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/halucinka/algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halucinka/algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/halucinka/algorithms/languages","stargazers_url":"https://api.github.com/repos/halucinka/algorithms/stargazers","contributors_url":"https://api.github.com/repos/halucinka/algorithms/contributors","subscribers_url":"https://api.github.com/repos/halucinka/algorithms/subscribers","subscription_url":"https://api.github.com/repos/halucinka/algorithms/subscription","commits_url":"https://api.github.com/repos/halucinka/algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/halucinka/algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/halucinka/algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/halucinka/algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/halucinka/algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/halucinka/algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halucinka/algorithms/merges","archive_url":"https://api.github.com/repos/halucinka/algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halucinka/algorithms/downloads","issues_url":"https://api.github.com/repos/halucinka/algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/halucinka/algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/halucinka/algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/halucinka/algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halucinka/algorithms/labels{/name}","releases_url":"https://api.github.com/repos/halucinka/algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/halucinka/algorithms/deployments","created_at":"2018-01-27T16:54:35Z","updated_at":"2018-01-27T18:42:42Z","pushed_at":"2018-02-07T21:07:28Z","git_url":"git://github.com/halucinka/algorithms.git","ssh_url":"git@github.com:halucinka/algorithms.git","clone_url":"https://github.com/halucinka/algorithms.git","svn_url":"https://github.com/halucinka/algorithms","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"halucinka:master","ref":"master","sha":"4e06cb1f54d686ef0d9f9ecd3fe427c3b7b205bc","user":{"login":"halucinka","id":1664386,"avatar_url":"https://avatars0.githubusercontent.com/u/1664386?v=4","gravatar_id":"","url":"https://api.github.com/users/halucinka","html_url":"https://github.com/halucinka","followers_url":"https://api.github.com/users/halucinka/followers","following_url":"https://api.github.com/users/halucinka/following{/other_user}","gists_url":"https://api.github.com/users/halucinka/gists{/gist_id}","starred_url":"https://api.github.com/users/halucinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halucinka/subscriptions","organizations_url":"https://api.github.com/users/halucinka/orgs","repos_url":"https://api.github.com/users/halucinka/repos","events_url":"https://api.github.com/users/halucinka/events{/privacy}","received_events_url":"https://api.github.com/users/halucinka/received_events","type":"User","site_admin":false},"repo":{"id":119183255,"name":"algorithms","full_name":"halucinka/algorithms","owner":{"login":"halucinka","id":1664386,"avatar_url":"https://avatars0.githubusercontent.com/u/1664386?v=4","gravatar_id":"","url":"https://api.github.com/users/halucinka","html_url":"https://github.com/halucinka","followers_url":"https://api.github.com/users/halucinka/followers","following_url":"https://api.github.com/users/halucinka/following{/other_user}","gists_url":"https://api.github.com/users/halucinka/gists{/gist_id}","starred_url":"https://api.github.com/users/halucinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halucinka/subscriptions","organizations_url":"https://api.github.com/users/halucinka/orgs","repos_url":"https://api.github.com/users/halucinka/repos","events_url":"https://api.github.com/users/halucinka/events{/privacy}","received_events_url":"https://api.github.com/users/halucinka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halucinka/algorithms","description":null,"fork":false,"url":"https://api.github.com/repos/halucinka/algorithms","forks_url":"https://api.github.com/repos/halucinka/algorithms/forks","keys_url":"https://api.github.com/repos/halucinka/algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halucinka/algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halucinka/algorithms/teams","hooks_url":"https://api.github.com/repos/halucinka/algorithms/hooks","issue_events_url":"https://api.github.com/repos/halucinka/algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/halucinka/algorithms/events","assignees_url":"https://api.github.com/repos/halucinka/algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/halucinka/algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/halucinka/algorithms/tags","blobs_url":"https://api.github.com/repos/halucinka/algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halucinka/algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halucinka/algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/halucinka/algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halucinka/algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/halucinka/algorithms/languages","stargazers_url":"https://api.github.com/repos/halucinka/algorithms/stargazers","contributors_url":"https://api.github.com/repos/halucinka/algorithms/contributors","subscribers_url":"https://api.github.com/repos/halucinka/algorithms/subscribers","subscription_url":"https://api.github.com/repos/halucinka/algorithms/subscription","commits_url":"https://api.github.com/repos/halucinka/algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/halucinka/algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/halucinka/algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/halucinka/algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/halucinka/algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/halucinka/algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halucinka/algorithms/merges","archive_url":"https://api.github.com/repos/halucinka/algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halucinka/algorithms/downloads","issues_url":"https://api.github.com/repos/halucinka/algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/halucinka/algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/halucinka/algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/halucinka/algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halucinka/algorithms/labels{/name}","releases_url":"https://api.github.com/repos/halucinka/algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/halucinka/algorithms/deployments","created_at":"2018-01-27T16:54:35Z","updated_at":"2018-01-27T18:42:42Z","pushed_at":"2018-02-07T21:07:28Z","git_url":"git://github.com/halucinka/algorithms.git","ssh_url":"git@github.com:halucinka/algorithms.git","clone_url":"https://github.com/halucinka/algorithms.git","svn_url":"https://github.com/halucinka/algorithms","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/halucinka/algorithms/pulls/15"},"html":{"href":"https://github.com/halucinka/algorithms/pull/15"},"issue":{"href":"https://api.github.com/repos/halucinka/algorithms/issues/15"},"comments":{"href":"https://api.github.com/repos/halucinka/algorithms/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/halucinka/algorithms/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/halucinka/algorithms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/halucinka/algorithms/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/halucinka/algorithms/statuses/71422d8d0a20fbb15ae99f5b096c87229e64d8c8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"DavidPal"}}