{"action":"opened","number":27,"pull_request":{"url":"https://api.github.com/repos/graphframes/graphframes/pulls/27","id":60581771,"html_url":"https://github.com/graphframes/graphframes/pull/27","diff_url":"https://github.com/graphframes/graphframes/pull/27.diff","patch_url":"https://github.com/graphframes/graphframes/pull/27.patch","issue_url":"https://api.github.com/repos/graphframes/graphframes/issues/27","number":27,"state":"open","locked":false,"title":"simplify triangle counts","user":{"login":"mengxr","id":829644,"avatar_url":"https://avatars.githubusercontent.com/u/829644?v=3","gravatar_id":"","url":"https://api.github.com/users/mengxr","html_url":"https://github.com/mengxr","followers_url":"https://api.github.com/users/mengxr/followers","following_url":"https://api.github.com/users/mengxr/following{/other_user}","gists_url":"https://api.github.com/users/mengxr/gists{/gist_id}","starred_url":"https://api.github.com/users/mengxr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengxr/subscriptions","organizations_url":"https://api.github.com/users/mengxr/orgs","repos_url":"https://api.github.com/users/mengxr/repos","events_url":"https://api.github.com/users/mengxr/events{/privacy}","received_events_url":"https://api.github.com/users/mengxr/received_events","type":"User","site_admin":false},"body":"If we flip the edge directions such that src < dst, the pattern `(a)-[]->(b); (b)-[]->(c); (a)-[]->(c)` would uniquely match triangles. It helps simplify the implementation. Tests are not changed in this PR.\r\n\r\n@thunterdb ","created_at":"2016-02-24T21:30:19Z","updated_at":"2016-02-24T21:30:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/graphframes/graphframes/pulls/27/commits","review_comments_url":"https://api.github.com/repos/graphframes/graphframes/pulls/27/comments","review_comment_url":"https://api.github.com/repos/graphframes/graphframes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graphframes/graphframes/issues/27/comments","statuses_url":"https://api.github.com/repos/graphframes/graphframes/statuses/ea2451b1af1aa5bc9eaf354960368849d71eec41","head":{"label":"mengxr:simplify-tri-count","ref":"simplify-tri-count","sha":"ea2451b1af1aa5bc9eaf354960368849d71eec41","user":{"login":"mengxr","id":829644,"avatar_url":"https://avatars.githubusercontent.com/u/829644?v=3","gravatar_id":"","url":"https://api.github.com/users/mengxr","html_url":"https://github.com/mengxr","followers_url":"https://api.github.com/users/mengxr/followers","following_url":"https://api.github.com/users/mengxr/following{/other_user}","gists_url":"https://api.github.com/users/mengxr/gists{/gist_id}","starred_url":"https://api.github.com/users/mengxr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengxr/subscriptions","organizations_url":"https://api.github.com/users/mengxr/orgs","repos_url":"https://api.github.com/users/mengxr/repos","events_url":"https://api.github.com/users/mengxr/events{/privacy}","received_events_url":"https://api.github.com/users/mengxr/received_events","type":"User","site_admin":false},"repo":{"id":52120354,"name":"graphframes","full_name":"mengxr/graphframes","owner":{"login":"mengxr","id":829644,"avatar_url":"https://avatars.githubusercontent.com/u/829644?v=3","gravatar_id":"","url":"https://api.github.com/users/mengxr","html_url":"https://github.com/mengxr","followers_url":"https://api.github.com/users/mengxr/followers","following_url":"https://api.github.com/users/mengxr/following{/other_user}","gists_url":"https://api.github.com/users/mengxr/gists{/gist_id}","starred_url":"https://api.github.com/users/mengxr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengxr/subscriptions","organizations_url":"https://api.github.com/users/mengxr/orgs","repos_url":"https://api.github.com/users/mengxr/repos","events_url":"https://api.github.com/users/mengxr/events{/privacy}","received_events_url":"https://api.github.com/users/mengxr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mengxr/graphframes","description":"","fork":true,"url":"https://api.github.com/repos/mengxr/graphframes","forks_url":"https://api.github.com/repos/mengxr/graphframes/forks","keys_url":"https://api.github.com/repos/mengxr/graphframes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mengxr/graphframes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mengxr/graphframes/teams","hooks_url":"https://api.github.com/repos/mengxr/graphframes/hooks","issue_events_url":"https://api.github.com/repos/mengxr/graphframes/issues/events{/number}","events_url":"https://api.github.com/repos/mengxr/graphframes/events","assignees_url":"https://api.github.com/repos/mengxr/graphframes/assignees{/user}","branches_url":"https://api.github.com/repos/mengxr/graphframes/branches{/branch}","tags_url":"https://api.github.com/repos/mengxr/graphframes/tags","blobs_url":"https://api.github.com/repos/mengxr/graphframes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mengxr/graphframes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mengxr/graphframes/git/refs{/sha}","trees_url":"https://api.github.com/repos/mengxr/graphframes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mengxr/graphframes/statuses/{sha}","languages_url":"https://api.github.com/repos/mengxr/graphframes/languages","stargazers_url":"https://api.github.com/repos/mengxr/graphframes/stargazers","contributors_url":"https://api.github.com/repos/mengxr/graphframes/contributors","subscribers_url":"https://api.github.com/repos/mengxr/graphframes/subscribers","subscription_url":"https://api.github.com/repos/mengxr/graphframes/subscription","commits_url":"https://api.github.com/repos/mengxr/graphframes/commits{/sha}","git_commits_url":"https://api.github.com/repos/mengxr/graphframes/git/commits{/sha}","comments_url":"https://api.github.com/repos/mengxr/graphframes/comments{/number}","issue_comment_url":"https://api.github.com/repos/mengxr/graphframes/issues/comments{/number}","contents_url":"https://api.github.com/repos/mengxr/graphframes/contents/{+path}","compare_url":"https://api.github.com/repos/mengxr/graphframes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mengxr/graphframes/merges","archive_url":"https://api.github.com/repos/mengxr/graphframes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mengxr/graphframes/downloads","issues_url":"https://api.github.com/repos/mengxr/graphframes/issues{/number}","pulls_url":"https://api.github.com/repos/mengxr/graphframes/pulls{/number}","milestones_url":"https://api.github.com/repos/mengxr/graphframes/milestones{/number}","notifications_url":"https://api.github.com/repos/mengxr/graphframes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mengxr/graphframes/labels{/name}","releases_url":"https://api.github.com/repos/mengxr/graphframes/releases{/id}","deployments_url":"https://api.github.com/repos/mengxr/graphframes/deployments","created_at":"2016-02-19T22:21:39Z","updated_at":"2016-02-19T22:21:41Z","pushed_at":"2016-02-24T21:29:11Z","git_url":"git://github.com/mengxr/graphframes.git","ssh_url":"git@github.com:mengxr/graphframes.git","clone_url":"https://github.com/mengxr/graphframes.git","svn_url":"https://github.com/mengxr/graphframes","homepage":null,"size":516,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"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":"graphframes:master","ref":"master","sha":"889acef73ec40888bf13da54eca65c5aee2a44cb","user":{"login":"graphframes","id":16808115,"avatar_url":"https://avatars.githubusercontent.com/u/16808115?v=3","gravatar_id":"","url":"https://api.github.com/users/graphframes","html_url":"https://github.com/graphframes","followers_url":"https://api.github.com/users/graphframes/followers","following_url":"https://api.github.com/users/graphframes/following{/other_user}","gists_url":"https://api.github.com/users/graphframes/gists{/gist_id}","starred_url":"https://api.github.com/users/graphframes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphframes/subscriptions","organizations_url":"https://api.github.com/users/graphframes/orgs","repos_url":"https://api.github.com/users/graphframes/repos","events_url":"https://api.github.com/users/graphframes/events{/privacy}","received_events_url":"https://api.github.com/users/graphframes/received_events","type":"Organization","site_admin":false},"repo":{"id":50067430,"name":"graphframes","full_name":"graphframes/graphframes","owner":{"login":"graphframes","id":16808115,"avatar_url":"https://avatars.githubusercontent.com/u/16808115?v=3","gravatar_id":"","url":"https://api.github.com/users/graphframes","html_url":"https://github.com/graphframes","followers_url":"https://api.github.com/users/graphframes/followers","following_url":"https://api.github.com/users/graphframes/following{/other_user}","gists_url":"https://api.github.com/users/graphframes/gists{/gist_id}","starred_url":"https://api.github.com/users/graphframes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphframes/subscriptions","organizations_url":"https://api.github.com/users/graphframes/orgs","repos_url":"https://api.github.com/users/graphframes/repos","events_url":"https://api.github.com/users/graphframes/events{/privacy}","received_events_url":"https://api.github.com/users/graphframes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graphframes/graphframes","description":"","fork":false,"url":"https://api.github.com/repos/graphframes/graphframes","forks_url":"https://api.github.com/repos/graphframes/graphframes/forks","keys_url":"https://api.github.com/repos/graphframes/graphframes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphframes/graphframes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphframes/graphframes/teams","hooks_url":"https://api.github.com/repos/graphframes/graphframes/hooks","issue_events_url":"https://api.github.com/repos/graphframes/graphframes/issues/events{/number}","events_url":"https://api.github.com/repos/graphframes/graphframes/events","assignees_url":"https://api.github.com/repos/graphframes/graphframes/assignees{/user}","branches_url":"https://api.github.com/repos/graphframes/graphframes/branches{/branch}","tags_url":"https://api.github.com/repos/graphframes/graphframes/tags","blobs_url":"https://api.github.com/repos/graphframes/graphframes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphframes/graphframes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphframes/graphframes/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphframes/graphframes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphframes/graphframes/statuses/{sha}","languages_url":"https://api.github.com/repos/graphframes/graphframes/languages","stargazers_url":"https://api.github.com/repos/graphframes/graphframes/stargazers","contributors_url":"https://api.github.com/repos/graphframes/graphframes/contributors","subscribers_url":"https://api.github.com/repos/graphframes/graphframes/subscribers","subscription_url":"https://api.github.com/repos/graphframes/graphframes/subscription","commits_url":"https://api.github.com/repos/graphframes/graphframes/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphframes/graphframes/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphframes/graphframes/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphframes/graphframes/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphframes/graphframes/contents/{+path}","compare_url":"https://api.github.com/repos/graphframes/graphframes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphframes/graphframes/merges","archive_url":"https://api.github.com/repos/graphframes/graphframes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphframes/graphframes/downloads","issues_url":"https://api.github.com/repos/graphframes/graphframes/issues{/number}","pulls_url":"https://api.github.com/repos/graphframes/graphframes/pulls{/number}","milestones_url":"https://api.github.com/repos/graphframes/graphframes/milestones{/number}","notifications_url":"https://api.github.com/repos/graphframes/graphframes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphframes/graphframes/labels{/name}","releases_url":"https://api.github.com/repos/graphframes/graphframes/releases{/id}","deployments_url":"https://api.github.com/repos/graphframes/graphframes/deployments","created_at":"2016-01-20T23:17:56Z","updated_at":"2016-02-21T03:48:36Z","pushed_at":"2016-02-24T21:30:19Z","git_url":"git://github.com/graphframes/graphframes.git","ssh_url":"git@github.com:graphframes/graphframes.git","clone_url":"https://github.com/graphframes/graphframes.git","svn_url":"https://github.com/graphframes/graphframes","homepage":null,"size":511,"stargazers_count":10,"watchers_count":10,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graphframes/graphframes/pulls/27"},"html":{"href":"https://github.com/graphframes/graphframes/pull/27"},"issue":{"href":"https://api.github.com/repos/graphframes/graphframes/issues/27"},"comments":{"href":"https://api.github.com/repos/graphframes/graphframes/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/graphframes/graphframes/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/graphframes/graphframes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graphframes/graphframes/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/graphframes/graphframes/statuses/ea2451b1af1aa5bc9eaf354960368849d71eec41"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":24,"changed_files":1}}