{"action":"created","comment":{"url":"https://api.github.com/repos/twitter/cassovary/pulls/comments/23892366","id":23892366,"diff_hunk":"@@ -76,14 +76,22 @@ object TestGraphs {\n     NodeIdEdgesMaxId(14, Array())\n     ).iterator, StoredGraphDir.BothInOut)\n \n-  val nodeSeqIterator = () => Seq(\n-      NodeIdEdgesMaxId(10, Array(11, 12, 13)),\n-      NodeIdEdgesMaxId(11, Array(12, 14)),\n-      NodeIdEdgesMaxId(12, Array(14)),\n-      NodeIdEdgesMaxId(13, Array(12, 14)),\n-      NodeIdEdgesMaxId(14, Array(15)),\n-      NodeIdEdgesMaxId(15, Array(10, 11))\n-      ).iterator\n+  val nodeSeq =  Seq(\n+    NodeIdEdgesMaxId(10, Array(11, 12, 13)),\n+    NodeIdEdgesMaxId(11, Array(12, 14)),\n+    NodeIdEdgesMaxId(12, Array(14)),\n+    NodeIdEdgesMaxId(13, Array(12, 14)),\n+    NodeIdEdgesMaxId(14, Array(15)),\n+    NodeIdEdgesMaxId(15, Array(10, 11)))\n+\n+  val nodeSeqWithEmpty = Seq(\n+    NodeIdEdgesMaxId(0, Array.empty[Int]),\n+    NodeIdEdgesMaxId(1, Array.empty[Int])\n+  ) ++ nodeSeq\n+\n+\n+  val nodeSeqIterator = () => nodeSeq.iterator","path":"cassovary-core/src/main/scala/com/twitter/cassovary/graph/TestGraph.scala","position":26,"original_position":26,"commit_id":"bd9472b5acab459e022dbb790660695d42148fc5","original_commit_id":"bd9472b5acab459e022dbb790660695d42148fc5","user":{"login":"pankajgupta","id":71128,"avatar_url":"https://avatars.githubusercontent.com/u/71128?v=3","gravatar_id":"","url":"https://api.github.com/users/pankajgupta","html_url":"https://github.com/pankajgupta","followers_url":"https://api.github.com/users/pankajgupta/followers","following_url":"https://api.github.com/users/pankajgupta/following{/other_user}","gists_url":"https://api.github.com/users/pankajgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/pankajgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankajgupta/subscriptions","organizations_url":"https://api.github.com/users/pankajgupta/orgs","repos_url":"https://api.github.com/users/pankajgupta/repos","events_url":"https://api.github.com/users/pankajgupta/events{/privacy}","received_events_url":"https://api.github.com/users/pankajgupta/received_events","type":"User","site_admin":false},"body":"bear in mind that this will slightly be changed once https://github.com/twitter/cassovary/pull/137 is merged. pls merge master in before your next PR.","created_at":"2015-01-31T21:45:31Z","updated_at":"2015-01-31T21:45:31Z","html_url":"https://github.com/twitter/cassovary/pull/138#discussion_r23892366","pull_request_url":"https://api.github.com/repos/twitter/cassovary/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/twitter/cassovary/pulls/comments/23892366"},"html":{"href":"https://github.com/twitter/cassovary/pull/138#discussion_r23892366"},"pull_request":{"href":"https://api.github.com/repos/twitter/cassovary/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/twitter/cassovary/pulls/138","id":28213013,"html_url":"https://github.com/twitter/cassovary/pull/138","diff_url":"https://github.com/twitter/cassovary/pull/138.diff","patch_url":"https://github.com/twitter/cassovary/pull/138.patch","issue_url":"https://api.github.com/repos/twitter/cassovary/issues/138","number":138,"state":"open","locked":false,"title":"Degree centrality","user":{"login":"bmckown","id":4741964,"avatar_url":"https://avatars.githubusercontent.com/u/4741964?v=3","gravatar_id":"","url":"https://api.github.com/users/bmckown","html_url":"https://github.com/bmckown","followers_url":"https://api.github.com/users/bmckown/followers","following_url":"https://api.github.com/users/bmckown/following{/other_user}","gists_url":"https://api.github.com/users/bmckown/gists{/gist_id}","starred_url":"https://api.github.com/users/bmckown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmckown/subscriptions","organizations_url":"https://api.github.com/users/bmckown/orgs","repos_url":"https://api.github.com/users/bmckown/repos","events_url":"https://api.github.com/users/bmckown/events{/privacy}","received_events_url":"https://api.github.com/users/bmckown/received_events","type":"User","site_admin":false},"body":"This PR is the beginning of building out the analysis framework to allow more metrics to be computed on the graph.  We start with the simplest, in-degree and out-degree centrality, and will move to more complicated centrality algorithm and iterative algorithms such as HITS.  ","created_at":"2015-01-28T17:36:10Z","updated_at":"2015-01-31T21:45:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae9cbed2cffe28bc18f887123b50689c02fcadcb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/twitter/cassovary/pulls/138/commits","review_comments_url":"https://api.github.com/repos/twitter/cassovary/pulls/138/comments","review_comment_url":"https://api.github.com/repos/twitter/cassovary/pulls/comments/{number}","comments_url":"https://api.github.com/repos/twitter/cassovary/issues/138/comments","statuses_url":"https://api.github.com/repos/twitter/cassovary/statuses/bd9472b5acab459e022dbb790660695d42148fc5","head":{"label":"bmckown:degree_centrality","ref":"degree_centrality","sha":"bd9472b5acab459e022dbb790660695d42148fc5","user":{"login":"bmckown","id":4741964,"avatar_url":"https://avatars.githubusercontent.com/u/4741964?v=3","gravatar_id":"","url":"https://api.github.com/users/bmckown","html_url":"https://github.com/bmckown","followers_url":"https://api.github.com/users/bmckown/followers","following_url":"https://api.github.com/users/bmckown/following{/other_user}","gists_url":"https://api.github.com/users/bmckown/gists{/gist_id}","starred_url":"https://api.github.com/users/bmckown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmckown/subscriptions","organizations_url":"https://api.github.com/users/bmckown/orgs","repos_url":"https://api.github.com/users/bmckown/repos","events_url":"https://api.github.com/users/bmckown/events{/privacy}","received_events_url":"https://api.github.com/users/bmckown/received_events","type":"User","site_admin":false},"repo":{"id":29924100,"name":"cassovary","full_name":"bmckown/cassovary","owner":{"login":"bmckown","id":4741964,"avatar_url":"https://avatars.githubusercontent.com/u/4741964?v=3","gravatar_id":"","url":"https://api.github.com/users/bmckown","html_url":"https://github.com/bmckown","followers_url":"https://api.github.com/users/bmckown/followers","following_url":"https://api.github.com/users/bmckown/following{/other_user}","gists_url":"https://api.github.com/users/bmckown/gists{/gist_id}","starred_url":"https://api.github.com/users/bmckown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmckown/subscriptions","organizations_url":"https://api.github.com/users/bmckown/orgs","repos_url":"https://api.github.com/users/bmckown/repos","events_url":"https://api.github.com/users/bmckown/events{/privacy}","received_events_url":"https://api.github.com/users/bmckown/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmckown/cassovary","description":"Cassovary is a simple big graph processing library for the JVM","fork":true,"url":"https://api.github.com/repos/bmckown/cassovary","forks_url":"https://api.github.com/repos/bmckown/cassovary/forks","keys_url":"https://api.github.com/repos/bmckown/cassovary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmckown/cassovary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmckown/cassovary/teams","hooks_url":"https://api.github.com/repos/bmckown/cassovary/hooks","issue_events_url":"https://api.github.com/repos/bmckown/cassovary/issues/events{/number}","events_url":"https://api.github.com/repos/bmckown/cassovary/events","assignees_url":"https://api.github.com/repos/bmckown/cassovary/assignees{/user}","branches_url":"https://api.github.com/repos/bmckown/cassovary/branches{/branch}","tags_url":"https://api.github.com/repos/bmckown/cassovary/tags","blobs_url":"https://api.github.com/repos/bmckown/cassovary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmckown/cassovary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmckown/cassovary/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmckown/cassovary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmckown/cassovary/statuses/{sha}","languages_url":"https://api.github.com/repos/bmckown/cassovary/languages","stargazers_url":"https://api.github.com/repos/bmckown/cassovary/stargazers","contributors_url":"https://api.github.com/repos/bmckown/cassovary/contributors","subscribers_url":"https://api.github.com/repos/bmckown/cassovary/subscribers","subscription_url":"https://api.github.com/repos/bmckown/cassovary/subscription","commits_url":"https://api.github.com/repos/bmckown/cassovary/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmckown/cassovary/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmckown/cassovary/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmckown/cassovary/issues/comments/{number}","contents_url":"https://api.github.com/repos/bmckown/cassovary/contents/{+path}","compare_url":"https://api.github.com/repos/bmckown/cassovary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmckown/cassovary/merges","archive_url":"https://api.github.com/repos/bmckown/cassovary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmckown/cassovary/downloads","issues_url":"https://api.github.com/repos/bmckown/cassovary/issues{/number}","pulls_url":"https://api.github.com/repos/bmckown/cassovary/pulls{/number}","milestones_url":"https://api.github.com/repos/bmckown/cassovary/milestones{/number}","notifications_url":"https://api.github.com/repos/bmckown/cassovary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmckown/cassovary/labels{/name}","releases_url":"https://api.github.com/repos/bmckown/cassovary/releases{/id}","created_at":"2015-01-27T16:54:29Z","updated_at":"2015-01-27T16:54:30Z","pushed_at":"2015-01-31T17:33:39Z","git_url":"git://github.com/bmckown/cassovary.git","ssh_url":"git@github.com:bmckown/cassovary.git","clone_url":"https://github.com/bmckown/cassovary.git","svn_url":"https://github.com/bmckown/cassovary","homepage":"http://twitter.com/cassovary","size":4163,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"twitter:master","ref":"master","sha":"004f2ac8fbbd014c8627fd1a7ff77b1338af40cc","user":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"repo":{"id":3509388,"name":"cassovary","full_name":"twitter/cassovary","owner":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twitter/cassovary","description":"Cassovary is a simple big graph processing library for the JVM","fork":false,"url":"https://api.github.com/repos/twitter/cassovary","forks_url":"https://api.github.com/repos/twitter/cassovary/forks","keys_url":"https://api.github.com/repos/twitter/cassovary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twitter/cassovary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twitter/cassovary/teams","hooks_url":"https://api.github.com/repos/twitter/cassovary/hooks","issue_events_url":"https://api.github.com/repos/twitter/cassovary/issues/events{/number}","events_url":"https://api.github.com/repos/twitter/cassovary/events","assignees_url":"https://api.github.com/repos/twitter/cassovary/assignees{/user}","branches_url":"https://api.github.com/repos/twitter/cassovary/branches{/branch}","tags_url":"https://api.github.com/repos/twitter/cassovary/tags","blobs_url":"https://api.github.com/repos/twitter/cassovary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twitter/cassovary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twitter/cassovary/git/refs{/sha}","trees_url":"https://api.github.com/repos/twitter/cassovary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twitter/cassovary/statuses/{sha}","languages_url":"https://api.github.com/repos/twitter/cassovary/languages","stargazers_url":"https://api.github.com/repos/twitter/cassovary/stargazers","contributors_url":"https://api.github.com/repos/twitter/cassovary/contributors","subscribers_url":"https://api.github.com/repos/twitter/cassovary/subscribers","subscription_url":"https://api.github.com/repos/twitter/cassovary/subscription","commits_url":"https://api.github.com/repos/twitter/cassovary/commits{/sha}","git_commits_url":"https://api.github.com/repos/twitter/cassovary/git/commits{/sha}","comments_url":"https://api.github.com/repos/twitter/cassovary/comments{/number}","issue_comment_url":"https://api.github.com/repos/twitter/cassovary/issues/comments/{number}","contents_url":"https://api.github.com/repos/twitter/cassovary/contents/{+path}","compare_url":"https://api.github.com/repos/twitter/cassovary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twitter/cassovary/merges","archive_url":"https://api.github.com/repos/twitter/cassovary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twitter/cassovary/downloads","issues_url":"https://api.github.com/repos/twitter/cassovary/issues{/number}","pulls_url":"https://api.github.com/repos/twitter/cassovary/pulls{/number}","milestones_url":"https://api.github.com/repos/twitter/cassovary/milestones{/number}","notifications_url":"https://api.github.com/repos/twitter/cassovary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twitter/cassovary/labels{/name}","releases_url":"https://api.github.com/repos/twitter/cassovary/releases{/id}","created_at":"2012-02-21T23:22:30Z","updated_at":"2015-01-31T20:08:24Z","pushed_at":"2015-01-30T17:32:55Z","git_url":"git://github.com/twitter/cassovary.git","ssh_url":"git@github.com:twitter/cassovary.git","clone_url":"https://github.com/twitter/cassovary.git","svn_url":"https://github.com/twitter/cassovary","homepage":"http://twitter.com/cassovary","size":4163,"stargazers_count":680,"watchers_count":680,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":86,"mirror_url":null,"open_issues_count":19,"forks":86,"open_issues":19,"watchers":680,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twitter/cassovary/pulls/138"},"html":{"href":"https://github.com/twitter/cassovary/pull/138"},"issue":{"href":"https://api.github.com/repos/twitter/cassovary/issues/138"},"comments":{"href":"https://api.github.com/repos/twitter/cassovary/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/twitter/cassovary/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/twitter/cassovary/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/twitter/cassovary/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/twitter/cassovary/statuses/bd9472b5acab459e022dbb790660695d42148fc5"}}}}