{"action":"created","comment":{"url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/comments/53459005","id":53459005,"diff_hunk":"@@ -0,0 +1,49 @@\n+package com.project.graph;\n+\n+public class Edge {\n+\tprivate Node from;\n+\tprivate Node to;\n+\tprivate double speedLimit;\n+\t\n+\tpublic Edge(Node from, Node to, double speedLimit){\n+\t\tthis.from = from;\n+\t\tthis.to = to;\n+\t\tthis.speedLimit = speedLimit;\n+\t}\n+\t\n+\tpublic Node getFrom(){\n+\t\treturn from;\n+\t}\n+\t\n+\tpublic void setFrom(Node newFrom){\n+\t\tfrom = newFrom;\n+\t}\n+\t\n+\tpublic Node getTo(){\n+\t\treturn to;\n+\t}\n+\t\n+\tpublic void setTo(Node newTo){\n+\t\tto = newTo;\n+\t}\n+\t\n+\tpublic double getSpeedLimit(){\n+\t\treturn speedLimit;\n+\t}\n+\t\n+\tpublic void setSpeedLimit(double newSpeedLimit){\n+\t\tspeedLimit = newSpeedLimit;\n+\t}\n+\t\n+\tpublic double getLength(){","path":"src/com/project/graph/Edge.java","position":38,"original_position":38,"commit_id":"7d3aac27b0b173df5dd39bfd241e80cca01a1e54","original_commit_id":"7d3aac27b0b173df5dd39bfd241e80cca01a1e54","user":{"login":"bigblind","id":737493,"avatar_url":"https://avatars.githubusercontent.com/u/737493?v=3","gravatar_id":"","url":"https://api.github.com/users/bigblind","html_url":"https://github.com/bigblind","followers_url":"https://api.github.com/users/bigblind/followers","following_url":"https://api.github.com/users/bigblind/following{/other_user}","gists_url":"https://api.github.com/users/bigblind/gists{/gist_id}","starred_url":"https://api.github.com/users/bigblind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigblind/subscriptions","organizations_url":"https://api.github.com/users/bigblind/orgs","repos_url":"https://api.github.com/users/bigblind/repos","events_url":"https://api.github.com/users/bigblind/events{/privacy}","received_events_url":"https://api.github.com/users/bigblind/received_events","type":"User","site_admin":false},"body":"It's the length of the road. Since crossings are represented by co-ordinates in the plane, and we're assuming that all roads are straight, the length of an edge is the distance between the vertices it connects.","created_at":"2016-02-19T13:17:03Z","updated_at":"2016-02-19T13:17:03Z","html_url":"https://github.com/Sethon/IntelligentTrafficControl/pull/1#discussion_r53459005","pull_request_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/comments/53459005"},"html":{"href":"https://github.com/Sethon/IntelligentTrafficControl/pull/1#discussion_r53459005"},"pull_request":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1","id":59648271,"html_url":"https://github.com/Sethon/IntelligentTrafficControl/pull/1","diff_url":"https://github.com/Sethon/IntelligentTrafficControl/pull/1.diff","patch_url":"https://github.com/Sethon/IntelligentTrafficControl/pull/1.patch","issue_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/1","number":1,"state":"closed","locked":false,"title":"initial graph implementation","user":{"login":"bigblind","id":737493,"avatar_url":"https://avatars.githubusercontent.com/u/737493?v=3","gravatar_id":"","url":"https://api.github.com/users/bigblind","html_url":"https://github.com/bigblind","followers_url":"https://api.github.com/users/bigblind/followers","following_url":"https://api.github.com/users/bigblind/following{/other_user}","gists_url":"https://api.github.com/users/bigblind/gists{/gist_id}","starred_url":"https://api.github.com/users/bigblind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigblind/subscriptions","organizations_url":"https://api.github.com/users/bigblind/orgs","repos_url":"https://api.github.com/users/bigblind/repos","events_url":"https://api.github.com/users/bigblind/events{/privacy}","received_events_url":"https://api.github.com/users/bigblind/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-17T14:08:13Z","updated_at":"2016-02-19T13:17:03Z","closed_at":"2016-02-17T14:15:50Z","merged_at":"2016-02-17T14:15:50Z","merge_commit_sha":"4ace5fdadedf28e241ee266a59a351684c16bae1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/1/comments","statuses_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/statuses/7d3aac27b0b173df5dd39bfd241e80cca01a1e54","head":{"label":"Sethon:graph","ref":"graph","sha":"7d3aac27b0b173df5dd39bfd241e80cca01a1e54","user":{"login":"Sethon","id":4964739,"avatar_url":"https://avatars.githubusercontent.com/u/4964739?v=3","gravatar_id":"","url":"https://api.github.com/users/Sethon","html_url":"https://github.com/Sethon","followers_url":"https://api.github.com/users/Sethon/followers","following_url":"https://api.github.com/users/Sethon/following{/other_user}","gists_url":"https://api.github.com/users/Sethon/gists{/gist_id}","starred_url":"https://api.github.com/users/Sethon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sethon/subscriptions","organizations_url":"https://api.github.com/users/Sethon/orgs","repos_url":"https://api.github.com/users/Sethon/repos","events_url":"https://api.github.com/users/Sethon/events{/privacy}","received_events_url":"https://api.github.com/users/Sethon/received_events","type":"User","site_admin":false},"repo":{"id":51858310,"name":"IntelligentTrafficControl","full_name":"Sethon/IntelligentTrafficControl","owner":{"login":"Sethon","id":4964739,"avatar_url":"https://avatars.githubusercontent.com/u/4964739?v=3","gravatar_id":"","url":"https://api.github.com/users/Sethon","html_url":"https://github.com/Sethon","followers_url":"https://api.github.com/users/Sethon/followers","following_url":"https://api.github.com/users/Sethon/following{/other_user}","gists_url":"https://api.github.com/users/Sethon/gists{/gist_id}","starred_url":"https://api.github.com/users/Sethon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sethon/subscriptions","organizations_url":"https://api.github.com/users/Sethon/orgs","repos_url":"https://api.github.com/users/Sethon/repos","events_url":"https://api.github.com/users/Sethon/events{/privacy}","received_events_url":"https://api.github.com/users/Sethon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sethon/IntelligentTrafficControl","description":null,"fork":false,"url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl","forks_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/forks","keys_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/teams","hooks_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/hooks","issue_events_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/events{/number}","events_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/events","assignees_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/assignees{/user}","branches_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/branches{/branch}","tags_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/tags","blobs_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/statuses/{sha}","languages_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/languages","stargazers_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/stargazers","contributors_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/contributors","subscribers_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/subscribers","subscription_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/subscription","commits_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/contents/{+path}","compare_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/merges","archive_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/downloads","issues_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues{/number}","pulls_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls{/number}","milestones_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/milestones{/number}","notifications_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/labels{/name}","releases_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/releases{/id}","deployments_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/deployments","created_at":"2016-02-16T18:28:37Z","updated_at":"2016-02-16T18:28:41Z","pushed_at":"2016-02-17T14:15:50Z","git_url":"git://github.com/Sethon/IntelligentTrafficControl.git","ssh_url":"git@github.com:Sethon/IntelligentTrafficControl.git","clone_url":"https://github.com/Sethon/IntelligentTrafficControl.git","svn_url":"https://github.com/Sethon/IntelligentTrafficControl","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":"Sethon:master","ref":"master","sha":"4aa796aa987adb809bcaf52ac9eedfe6995bbc6c","user":{"login":"Sethon","id":4964739,"avatar_url":"https://avatars.githubusercontent.com/u/4964739?v=3","gravatar_id":"","url":"https://api.github.com/users/Sethon","html_url":"https://github.com/Sethon","followers_url":"https://api.github.com/users/Sethon/followers","following_url":"https://api.github.com/users/Sethon/following{/other_user}","gists_url":"https://api.github.com/users/Sethon/gists{/gist_id}","starred_url":"https://api.github.com/users/Sethon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sethon/subscriptions","organizations_url":"https://api.github.com/users/Sethon/orgs","repos_url":"https://api.github.com/users/Sethon/repos","events_url":"https://api.github.com/users/Sethon/events{/privacy}","received_events_url":"https://api.github.com/users/Sethon/received_events","type":"User","site_admin":false},"repo":{"id":51858310,"name":"IntelligentTrafficControl","full_name":"Sethon/IntelligentTrafficControl","owner":{"login":"Sethon","id":4964739,"avatar_url":"https://avatars.githubusercontent.com/u/4964739?v=3","gravatar_id":"","url":"https://api.github.com/users/Sethon","html_url":"https://github.com/Sethon","followers_url":"https://api.github.com/users/Sethon/followers","following_url":"https://api.github.com/users/Sethon/following{/other_user}","gists_url":"https://api.github.com/users/Sethon/gists{/gist_id}","starred_url":"https://api.github.com/users/Sethon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sethon/subscriptions","organizations_url":"https://api.github.com/users/Sethon/orgs","repos_url":"https://api.github.com/users/Sethon/repos","events_url":"https://api.github.com/users/Sethon/events{/privacy}","received_events_url":"https://api.github.com/users/Sethon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sethon/IntelligentTrafficControl","description":null,"fork":false,"url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl","forks_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/forks","keys_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/teams","hooks_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/hooks","issue_events_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/events{/number}","events_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/events","assignees_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/assignees{/user}","branches_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/branches{/branch}","tags_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/tags","blobs_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/statuses/{sha}","languages_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/languages","stargazers_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/stargazers","contributors_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/contributors","subscribers_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/subscribers","subscription_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/subscription","commits_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/contents/{+path}","compare_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/merges","archive_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/downloads","issues_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues{/number}","pulls_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls{/number}","milestones_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/milestones{/number}","notifications_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/labels{/name}","releases_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/releases{/id}","deployments_url":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/deployments","created_at":"2016-02-16T18:28:37Z","updated_at":"2016-02-16T18:28:41Z","pushed_at":"2016-02-17T14:15:50Z","git_url":"git://github.com/Sethon/IntelligentTrafficControl.git","ssh_url":"git@github.com:Sethon/IntelligentTrafficControl.git","clone_url":"https://github.com/Sethon/IntelligentTrafficControl.git","svn_url":"https://github.com/Sethon/IntelligentTrafficControl","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1"},"html":{"href":"https://github.com/Sethon/IntelligentTrafficControl/pull/1"},"issue":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/1"},"comments":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Sethon/IntelligentTrafficControl/statuses/7d3aac27b0b173df5dd39bfd241e80cca01a1e54"}}}}