{"action":"created","comment":{"url":"https://api.github.com/repos/crashtack/data-structures/pulls/comments/77758409","id":77758409,"diff_hunk":"@@ -11,9 +11,11 @@ def __init__(self, initial_graph=None):\n          3:[1]}\n         '''\n         if initial_graph is None:\n-            self.graph = {}\n-        else:\n+                self.graph = {}\n+        elif isinstance(initial_graph, dict):\n             self.graph = initial_graph\n+        else:\n+            raise TypeError(\"Please pass a dictionary\")\n \n     def __iter__(self):\n         return iter(self.graph)","path":"src/graph.py","position":13,"original_position":13,"commit_id":"ab41c6f6093e8ac25c36bbb22493303b8925f8eb","original_commit_id":"ab41c6f6093e8ac25c36bbb22493303b8925f8eb","user":{"login":"WillWeatherford","id":7210312,"avatar_url":"https://avatars.githubusercontent.com/u/7210312?v=3","gravatar_id":"","url":"https://api.github.com/users/WillWeatherford","html_url":"https://github.com/WillWeatherford","followers_url":"https://api.github.com/users/WillWeatherford/followers","following_url":"https://api.github.com/users/WillWeatherford/following{/other_user}","gists_url":"https://api.github.com/users/WillWeatherford/gists{/gist_id}","starred_url":"https://api.github.com/users/WillWeatherford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillWeatherford/subscriptions","organizations_url":"https://api.github.com/users/WillWeatherford/orgs","repos_url":"https://api.github.com/users/WillWeatherford/repos","events_url":"https://api.github.com/users/WillWeatherford/events{/privacy}","received_events_url":"https://api.github.com/users/WillWeatherford/received_events","type":"User","site_admin":false},"body":"Your current `edges()` implementation isn't quite up to snuff; it will return a list of lists of nodes. This won't mean much as edges since you wouldn't know what is the starting node for each edge.\r\n\r\nTo represent edges, the method could return e.g. a list of tuples of the from node and the to node i.e. `[('a', 'b'), ('a', 'c'), ('b', 'd')]` etc. or somethng like `['a -> b', 'a -> c', 'b -> d']`.","created_at":"2016-09-07T04:24:51Z","updated_at":"2016-09-07T04:24:51Z","html_url":"https://github.com/crashtack/data-structures/pull/19#discussion_r77758409","pull_request_url":"https://api.github.com/repos/crashtack/data-structures/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/crashtack/data-structures/pulls/comments/77758409"},"html":{"href":"https://github.com/crashtack/data-structures/pull/19#discussion_r77758409"},"pull_request":{"href":"https://api.github.com/repos/crashtack/data-structures/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/crashtack/data-structures/pulls/19","id":83903319,"html_url":"https://github.com/crashtack/data-structures/pull/19","diff_url":"https://github.com/crashtack/data-structures/pull/19.diff","patch_url":"https://github.com/crashtack/data-structures/pull/19.patch","issue_url":"https://api.github.com/repos/crashtack/data-structures/issues/19","number":19,"state":"open","locked":false,"title":"Improvments as per graders suggestions","user":{"login":"bitedgeco","id":7556992,"avatar_url":"https://avatars.githubusercontent.com/u/7556992?v=3","gravatar_id":"","url":"https://api.github.com/users/bitedgeco","html_url":"https://github.com/bitedgeco","followers_url":"https://api.github.com/users/bitedgeco/followers","following_url":"https://api.github.com/users/bitedgeco/following{/other_user}","gists_url":"https://api.github.com/users/bitedgeco/gists{/gist_id}","starred_url":"https://api.github.com/users/bitedgeco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitedgeco/subscriptions","organizations_url":"https://api.github.com/users/bitedgeco/orgs","repos_url":"https://api.github.com/users/bitedgeco/repos","events_url":"https://api.github.com/users/bitedgeco/events{/privacy}","received_events_url":"https://api.github.com/users/bitedgeco/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-03T19:07:32Z","updated_at":"2016-09-07T04:24:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16375b49452c5fb659343548ea0bdadf0337d018","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/crashtack/data-structures/pulls/19/commits","review_comments_url":"https://api.github.com/repos/crashtack/data-structures/pulls/19/comments","review_comment_url":"https://api.github.com/repos/crashtack/data-structures/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crashtack/data-structures/issues/19/comments","statuses_url":"https://api.github.com/repos/crashtack/data-structures/statuses/ab41c6f6093e8ac25c36bbb22493303b8925f8eb","head":{"label":"crashtack:graph","ref":"graph","sha":"ab41c6f6093e8ac25c36bbb22493303b8925f8eb","user":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"repo":{"id":65762098,"name":"data-structures","full_name":"crashtack/data-structures","owner":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crashtack/data-structures","description":null,"fork":false,"url":"https://api.github.com/repos/crashtack/data-structures","forks_url":"https://api.github.com/repos/crashtack/data-structures/forks","keys_url":"https://api.github.com/repos/crashtack/data-structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crashtack/data-structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crashtack/data-structures/teams","hooks_url":"https://api.github.com/repos/crashtack/data-structures/hooks","issue_events_url":"https://api.github.com/repos/crashtack/data-structures/issues/events{/number}","events_url":"https://api.github.com/repos/crashtack/data-structures/events","assignees_url":"https://api.github.com/repos/crashtack/data-structures/assignees{/user}","branches_url":"https://api.github.com/repos/crashtack/data-structures/branches{/branch}","tags_url":"https://api.github.com/repos/crashtack/data-structures/tags","blobs_url":"https://api.github.com/repos/crashtack/data-structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crashtack/data-structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crashtack/data-structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/crashtack/data-structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crashtack/data-structures/statuses/{sha}","languages_url":"https://api.github.com/repos/crashtack/data-structures/languages","stargazers_url":"https://api.github.com/repos/crashtack/data-structures/stargazers","contributors_url":"https://api.github.com/repos/crashtack/data-structures/contributors","subscribers_url":"https://api.github.com/repos/crashtack/data-structures/subscribers","subscription_url":"https://api.github.com/repos/crashtack/data-structures/subscription","commits_url":"https://api.github.com/repos/crashtack/data-structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/crashtack/data-structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/crashtack/data-structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/crashtack/data-structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/crashtack/data-structures/contents/{+path}","compare_url":"https://api.github.com/repos/crashtack/data-structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crashtack/data-structures/merges","archive_url":"https://api.github.com/repos/crashtack/data-structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crashtack/data-structures/downloads","issues_url":"https://api.github.com/repos/crashtack/data-structures/issues{/number}","pulls_url":"https://api.github.com/repos/crashtack/data-structures/pulls{/number}","milestones_url":"https://api.github.com/repos/crashtack/data-structures/milestones{/number}","notifications_url":"https://api.github.com/repos/crashtack/data-structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crashtack/data-structures/labels{/name}","releases_url":"https://api.github.com/repos/crashtack/data-structures/releases{/id}","deployments_url":"https://api.github.com/repos/crashtack/data-structures/deployments","created_at":"2016-08-15T20:16:45Z","updated_at":"2016-08-17T19:50:48Z","pushed_at":"2016-09-03T19:07:33Z","git_url":"git://github.com/crashtack/data-structures.git","ssh_url":"git@github.com:crashtack/data-structures.git","clone_url":"https://github.com/crashtack/data-structures.git","svn_url":"https://github.com/crashtack/data-structures","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"crashtack:master","ref":"master","sha":"691964279c02b4c2545582a4bb52e394f17b4cba","user":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"repo":{"id":65762098,"name":"data-structures","full_name":"crashtack/data-structures","owner":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crashtack/data-structures","description":null,"fork":false,"url":"https://api.github.com/repos/crashtack/data-structures","forks_url":"https://api.github.com/repos/crashtack/data-structures/forks","keys_url":"https://api.github.com/repos/crashtack/data-structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crashtack/data-structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crashtack/data-structures/teams","hooks_url":"https://api.github.com/repos/crashtack/data-structures/hooks","issue_events_url":"https://api.github.com/repos/crashtack/data-structures/issues/events{/number}","events_url":"https://api.github.com/repos/crashtack/data-structures/events","assignees_url":"https://api.github.com/repos/crashtack/data-structures/assignees{/user}","branches_url":"https://api.github.com/repos/crashtack/data-structures/branches{/branch}","tags_url":"https://api.github.com/repos/crashtack/data-structures/tags","blobs_url":"https://api.github.com/repos/crashtack/data-structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crashtack/data-structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crashtack/data-structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/crashtack/data-structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crashtack/data-structures/statuses/{sha}","languages_url":"https://api.github.com/repos/crashtack/data-structures/languages","stargazers_url":"https://api.github.com/repos/crashtack/data-structures/stargazers","contributors_url":"https://api.github.com/repos/crashtack/data-structures/contributors","subscribers_url":"https://api.github.com/repos/crashtack/data-structures/subscribers","subscription_url":"https://api.github.com/repos/crashtack/data-structures/subscription","commits_url":"https://api.github.com/repos/crashtack/data-structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/crashtack/data-structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/crashtack/data-structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/crashtack/data-structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/crashtack/data-structures/contents/{+path}","compare_url":"https://api.github.com/repos/crashtack/data-structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crashtack/data-structures/merges","archive_url":"https://api.github.com/repos/crashtack/data-structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crashtack/data-structures/downloads","issues_url":"https://api.github.com/repos/crashtack/data-structures/issues{/number}","pulls_url":"https://api.github.com/repos/crashtack/data-structures/pulls{/number}","milestones_url":"https://api.github.com/repos/crashtack/data-structures/milestones{/number}","notifications_url":"https://api.github.com/repos/crashtack/data-structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crashtack/data-structures/labels{/name}","releases_url":"https://api.github.com/repos/crashtack/data-structures/releases{/id}","deployments_url":"https://api.github.com/repos/crashtack/data-structures/deployments","created_at":"2016-08-15T20:16:45Z","updated_at":"2016-08-17T19:50:48Z","pushed_at":"2016-09-03T19:07:33Z","git_url":"git://github.com/crashtack/data-structures.git","ssh_url":"git@github.com:crashtack/data-structures.git","clone_url":"https://github.com/crashtack/data-structures.git","svn_url":"https://github.com/crashtack/data-structures","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crashtack/data-structures/pulls/19"},"html":{"href":"https://github.com/crashtack/data-structures/pull/19"},"issue":{"href":"https://api.github.com/repos/crashtack/data-structures/issues/19"},"comments":{"href":"https://api.github.com/repos/crashtack/data-structures/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/crashtack/data-structures/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/crashtack/data-structures/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crashtack/data-structures/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/crashtack/data-structures/statuses/ab41c6f6093e8ac25c36bbb22493303b8925f8eb"}}}}
{"actor":{"display_login":"WillWeatherford"}}