{"action":"created","comment":{"url":"https://api.github.com/repos/scotist/data-structures/pulls/comments/57603286","id":57603286,"diff_hunk":"@@ -0,0 +1,91 @@\n+# _*_ encoding: utf-8 _*_\n+\"\"\"Make a python graph.\"\"\"\n+\n+\n+class Graph(object):\n+    \"\"\"Implement a directed graph.\"\"\"\n+\n+    def __init__(self):\n+        \"\"\"Initiate the graph as an empty dictionary.\"\"\"\n+        self.graph = {}\n+\n+    def nodes(self):\n+        \"\"\"Return list of nodes in graph.\"\"\"\n+        nodes = []\n+        for key in self.graph:\n+            nodes.append(key)\n+        return nodes","path":"src/graph.py","position":17,"original_position":17,"commit_id":"cd7964e3ecfd4f5c8b8441c778ab51c710d54ed2","original_commit_id":"cd7964e3ecfd4f5c8b8441c778ab51c710d54ed2","user":{"login":"joelstanner","id":3937302,"avatar_url":"https://avatars.githubusercontent.com/u/3937302?v=3","gravatar_id":"","url":"https://api.github.com/users/joelstanner","html_url":"https://github.com/joelstanner","followers_url":"https://api.github.com/users/joelstanner/followers","following_url":"https://api.github.com/users/joelstanner/following{/other_user}","gists_url":"https://api.github.com/users/joelstanner/gists{/gist_id}","starred_url":"https://api.github.com/users/joelstanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelstanner/subscriptions","organizations_url":"https://api.github.com/users/joelstanner/orgs","repos_url":"https://api.github.com/users/joelstanner/repos","events_url":"https://api.github.com/users/joelstanner/events{/privacy}","received_events_url":"https://api.github.com/users/joelstanner/received_events","type":"User","site_admin":false},"body":"You can also do this in one line.\r\n\r\n```python\r\nreturn list(self.graph.keys())\r\n```","created_at":"2016-03-28T17:44:52Z","updated_at":"2016-03-28T17:44:52Z","html_url":"https://github.com/scotist/data-structures/pull/16#discussion_r57603286","pull_request_url":"https://api.github.com/repos/scotist/data-structures/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/scotist/data-structures/pulls/comments/57603286"},"html":{"href":"https://github.com/scotist/data-structures/pull/16#discussion_r57603286"},"pull_request":{"href":"https://api.github.com/repos/scotist/data-structures/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/scotist/data-structures/pulls/16","id":63442555,"html_url":"https://github.com/scotist/data-structures/pull/16","diff_url":"https://github.com/scotist/data-structures/pull/16.diff","patch_url":"https://github.com/scotist/data-structures/pull/16.patch","issue_url":"https://api.github.com/repos/scotist/data-structures/issues/16","number":16,"state":"closed","locked":false,"title":"Graph","user":{"login":"scotist","id":13824801,"avatar_url":"https://avatars.githubusercontent.com/u/13824801?v=3","gravatar_id":"","url":"https://api.github.com/users/scotist","html_url":"https://github.com/scotist","followers_url":"https://api.github.com/users/scotist/followers","following_url":"https://api.github.com/users/scotist/following{/other_user}","gists_url":"https://api.github.com/users/scotist/gists{/gist_id}","starred_url":"https://api.github.com/users/scotist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotist/subscriptions","organizations_url":"https://api.github.com/users/scotist/orgs","repos_url":"https://api.github.com/users/scotist/repos","events_url":"https://api.github.com/users/scotist/events{/privacy}","received_events_url":"https://api.github.com/users/scotist/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-18T22:04:44Z","updated_at":"2016-03-28T17:44:52Z","closed_at":"2016-03-18T22:05:23Z","merged_at":"2016-03-18T22:05:23Z","merge_commit_sha":"8291f4a0db75eada79b39c882d1137618b47bae5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scotist/data-structures/pulls/16/commits","review_comments_url":"https://api.github.com/repos/scotist/data-structures/pulls/16/comments","review_comment_url":"https://api.github.com/repos/scotist/data-structures/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scotist/data-structures/issues/16/comments","statuses_url":"https://api.github.com/repos/scotist/data-structures/statuses/cd7964e3ecfd4f5c8b8441c778ab51c710d54ed2","head":{"label":"scotist:graph","ref":"graph","sha":"cd7964e3ecfd4f5c8b8441c778ab51c710d54ed2","user":{"login":"scotist","id":13824801,"avatar_url":"https://avatars.githubusercontent.com/u/13824801?v=3","gravatar_id":"","url":"https://api.github.com/users/scotist","html_url":"https://github.com/scotist","followers_url":"https://api.github.com/users/scotist/followers","following_url":"https://api.github.com/users/scotist/following{/other_user}","gists_url":"https://api.github.com/users/scotist/gists{/gist_id}","starred_url":"https://api.github.com/users/scotist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotist/subscriptions","organizations_url":"https://api.github.com/users/scotist/orgs","repos_url":"https://api.github.com/users/scotist/repos","events_url":"https://api.github.com/users/scotist/events{/privacy}","received_events_url":"https://api.github.com/users/scotist/received_events","type":"User","site_admin":false},"repo":{"id":53360063,"name":"data-structures","full_name":"scotist/data-structures","owner":{"login":"scotist","id":13824801,"avatar_url":"https://avatars.githubusercontent.com/u/13824801?v=3","gravatar_id":"","url":"https://api.github.com/users/scotist","html_url":"https://github.com/scotist","followers_url":"https://api.github.com/users/scotist/followers","following_url":"https://api.github.com/users/scotist/following{/other_user}","gists_url":"https://api.github.com/users/scotist/gists{/gist_id}","starred_url":"https://api.github.com/users/scotist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotist/subscriptions","organizations_url":"https://api.github.com/users/scotist/orgs","repos_url":"https://api.github.com/users/scotist/repos","events_url":"https://api.github.com/users/scotist/events{/privacy}","received_events_url":"https://api.github.com/users/scotist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scotist/data-structures","description":"Implements a linked list with python","fork":false,"url":"https://api.github.com/repos/scotist/data-structures","forks_url":"https://api.github.com/repos/scotist/data-structures/forks","keys_url":"https://api.github.com/repos/scotist/data-structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scotist/data-structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scotist/data-structures/teams","hooks_url":"https://api.github.com/repos/scotist/data-structures/hooks","issue_events_url":"https://api.github.com/repos/scotist/data-structures/issues/events{/number}","events_url":"https://api.github.com/repos/scotist/data-structures/events","assignees_url":"https://api.github.com/repos/scotist/data-structures/assignees{/user}","branches_url":"https://api.github.com/repos/scotist/data-structures/branches{/branch}","tags_url":"https://api.github.com/repos/scotist/data-structures/tags","blobs_url":"https://api.github.com/repos/scotist/data-structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scotist/data-structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scotist/data-structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/scotist/data-structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scotist/data-structures/statuses/{sha}","languages_url":"https://api.github.com/repos/scotist/data-structures/languages","stargazers_url":"https://api.github.com/repos/scotist/data-structures/stargazers","contributors_url":"https://api.github.com/repos/scotist/data-structures/contributors","subscribers_url":"https://api.github.com/repos/scotist/data-structures/subscribers","subscription_url":"https://api.github.com/repos/scotist/data-structures/subscription","commits_url":"https://api.github.com/repos/scotist/data-structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/scotist/data-structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/scotist/data-structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/scotist/data-structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/scotist/data-structures/contents/{+path}","compare_url":"https://api.github.com/repos/scotist/data-structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scotist/data-structures/merges","archive_url":"https://api.github.com/repos/scotist/data-structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scotist/data-structures/downloads","issues_url":"https://api.github.com/repos/scotist/data-structures/issues{/number}","pulls_url":"https://api.github.com/repos/scotist/data-structures/pulls{/number}","milestones_url":"https://api.github.com/repos/scotist/data-structures/milestones{/number}","notifications_url":"https://api.github.com/repos/scotist/data-structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scotist/data-structures/labels{/name}","releases_url":"https://api.github.com/repos/scotist/data-structures/releases{/id}","deployments_url":"https://api.github.com/repos/scotist/data-structures/deployments","created_at":"2016-03-07T21:21:50Z","updated_at":"2016-03-25T05:19:16Z","pushed_at":"2016-03-27T18:43:55Z","git_url":"git://github.com/scotist/data-structures.git","ssh_url":"git@github.com:scotist/data-structures.git","clone_url":"https://github.com/scotist/data-structures.git","svn_url":"https://github.com/scotist/data-structures","homepage":null,"size":61,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"scotist:master","ref":"master","sha":"90d6d99bc8e297394642b3a2d8193b6442c6f119","user":{"login":"scotist","id":13824801,"avatar_url":"https://avatars.githubusercontent.com/u/13824801?v=3","gravatar_id":"","url":"https://api.github.com/users/scotist","html_url":"https://github.com/scotist","followers_url":"https://api.github.com/users/scotist/followers","following_url":"https://api.github.com/users/scotist/following{/other_user}","gists_url":"https://api.github.com/users/scotist/gists{/gist_id}","starred_url":"https://api.github.com/users/scotist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotist/subscriptions","organizations_url":"https://api.github.com/users/scotist/orgs","repos_url":"https://api.github.com/users/scotist/repos","events_url":"https://api.github.com/users/scotist/events{/privacy}","received_events_url":"https://api.github.com/users/scotist/received_events","type":"User","site_admin":false},"repo":{"id":53360063,"name":"data-structures","full_name":"scotist/data-structures","owner":{"login":"scotist","id":13824801,"avatar_url":"https://avatars.githubusercontent.com/u/13824801?v=3","gravatar_id":"","url":"https://api.github.com/users/scotist","html_url":"https://github.com/scotist","followers_url":"https://api.github.com/users/scotist/followers","following_url":"https://api.github.com/users/scotist/following{/other_user}","gists_url":"https://api.github.com/users/scotist/gists{/gist_id}","starred_url":"https://api.github.com/users/scotist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotist/subscriptions","organizations_url":"https://api.github.com/users/scotist/orgs","repos_url":"https://api.github.com/users/scotist/repos","events_url":"https://api.github.com/users/scotist/events{/privacy}","received_events_url":"https://api.github.com/users/scotist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scotist/data-structures","description":"Implements a linked list with python","fork":false,"url":"https://api.github.com/repos/scotist/data-structures","forks_url":"https://api.github.com/repos/scotist/data-structures/forks","keys_url":"https://api.github.com/repos/scotist/data-structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scotist/data-structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scotist/data-structures/teams","hooks_url":"https://api.github.com/repos/scotist/data-structures/hooks","issue_events_url":"https://api.github.com/repos/scotist/data-structures/issues/events{/number}","events_url":"https://api.github.com/repos/scotist/data-structures/events","assignees_url":"https://api.github.com/repos/scotist/data-structures/assignees{/user}","branches_url":"https://api.github.com/repos/scotist/data-structures/branches{/branch}","tags_url":"https://api.github.com/repos/scotist/data-structures/tags","blobs_url":"https://api.github.com/repos/scotist/data-structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scotist/data-structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scotist/data-structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/scotist/data-structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scotist/data-structures/statuses/{sha}","languages_url":"https://api.github.com/repos/scotist/data-structures/languages","stargazers_url":"https://api.github.com/repos/scotist/data-structures/stargazers","contributors_url":"https://api.github.com/repos/scotist/data-structures/contributors","subscribers_url":"https://api.github.com/repos/scotist/data-structures/subscribers","subscription_url":"https://api.github.com/repos/scotist/data-structures/subscription","commits_url":"https://api.github.com/repos/scotist/data-structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/scotist/data-structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/scotist/data-structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/scotist/data-structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/scotist/data-structures/contents/{+path}","compare_url":"https://api.github.com/repos/scotist/data-structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scotist/data-structures/merges","archive_url":"https://api.github.com/repos/scotist/data-structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scotist/data-structures/downloads","issues_url":"https://api.github.com/repos/scotist/data-structures/issues{/number}","pulls_url":"https://api.github.com/repos/scotist/data-structures/pulls{/number}","milestones_url":"https://api.github.com/repos/scotist/data-structures/milestones{/number}","notifications_url":"https://api.github.com/repos/scotist/data-structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scotist/data-structures/labels{/name}","releases_url":"https://api.github.com/repos/scotist/data-structures/releases{/id}","deployments_url":"https://api.github.com/repos/scotist/data-structures/deployments","created_at":"2016-03-07T21:21:50Z","updated_at":"2016-03-25T05:19:16Z","pushed_at":"2016-03-27T18:43:55Z","git_url":"git://github.com/scotist/data-structures.git","ssh_url":"git@github.com:scotist/data-structures.git","clone_url":"https://github.com/scotist/data-structures.git","svn_url":"https://github.com/scotist/data-structures","homepage":null,"size":61,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scotist/data-structures/pulls/16"},"html":{"href":"https://github.com/scotist/data-structures/pull/16"},"issue":{"href":"https://api.github.com/repos/scotist/data-structures/issues/16"},"comments":{"href":"https://api.github.com/repos/scotist/data-structures/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/scotist/data-structures/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/scotist/data-structures/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scotist/data-structures/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/scotist/data-structures/statuses/cd7964e3ecfd4f5c8b8441c778ab51c710d54ed2"}}}}