{"action":"closed","number":1634,"pull_request":{"url":"https://api.github.com/repos/networkx/networkx/pulls/1634","id":39081085,"html_url":"https://github.com/networkx/networkx/pull/1634","diff_url":"https://github.com/networkx/networkx/pull/1634.diff","patch_url":"https://github.com/networkx/networkx/pull/1634.patch","issue_url":"https://api.github.com/repos/networkx/networkx/issues/1634","number":1634,"state":"closed","locked":false,"title":"Make selfloop methods return iterator instead of list in graph class","user":{"login":"MridulS","id":5363860,"avatar_url":"https://avatars.githubusercontent.com/u/5363860?v=3","gravatar_id":"","url":"https://api.github.com/users/MridulS","html_url":"https://github.com/MridulS","followers_url":"https://api.github.com/users/MridulS/followers","following_url":"https://api.github.com/users/MridulS/following{/other_user}","gists_url":"https://api.github.com/users/MridulS/gists{/gist_id}","starred_url":"https://api.github.com/users/MridulS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MridulS/subscriptions","organizations_url":"https://api.github.com/users/MridulS/orgs","repos_url":"https://api.github.com/users/MridulS/repos","events_url":"https://api.github.com/users/MridulS/events{/privacy}","received_events_url":"https://api.github.com/users/MridulS/received_events","type":"User","site_admin":false},"body":"This PR updates the methods `nodes_with_selfloops`, `selfloop_edges`, `number_of_selfloops` in `network/classes/graph.py` and `network/classes/multigraph.py`. These functions now return an iterator instead of lists.","created_at":"2015-07-02T13:16:42Z","updated_at":"2015-07-04T02:03:43Z","closed_at":"2015-07-04T02:03:43Z","merged_at":"2015-07-04T02:03:43Z","merge_commit_sha":"423d3ba0ac1800c78afd2415a970b026b7eaac30","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/networkx/networkx/pulls/1634/commits","review_comments_url":"https://api.github.com/repos/networkx/networkx/pulls/1634/comments","review_comment_url":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/networkx/networkx/issues/1634/comments","statuses_url":"https://api.github.com/repos/networkx/networkx/statuses/141fbf58bfe28d27c55936da13ebfa44a98fb733","head":{"label":"MridulS:selfloops","ref":"selfloops","sha":"141fbf58bfe28d27c55936da13ebfa44a98fb733","user":{"login":"MridulS","id":5363860,"avatar_url":"https://avatars.githubusercontent.com/u/5363860?v=3","gravatar_id":"","url":"https://api.github.com/users/MridulS","html_url":"https://github.com/MridulS","followers_url":"https://api.github.com/users/MridulS/followers","following_url":"https://api.github.com/users/MridulS/following{/other_user}","gists_url":"https://api.github.com/users/MridulS/gists{/gist_id}","starred_url":"https://api.github.com/users/MridulS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MridulS/subscriptions","organizations_url":"https://api.github.com/users/MridulS/orgs","repos_url":"https://api.github.com/users/MridulS/repos","events_url":"https://api.github.com/users/MridulS/events{/privacy}","received_events_url":"https://api.github.com/users/MridulS/received_events","type":"User","site_admin":false},"repo":{"id":30251932,"name":"networkx","full_name":"MridulS/networkx","owner":{"login":"MridulS","id":5363860,"avatar_url":"https://avatars.githubusercontent.com/u/5363860?v=3","gravatar_id":"","url":"https://api.github.com/users/MridulS","html_url":"https://github.com/MridulS","followers_url":"https://api.github.com/users/MridulS/followers","following_url":"https://api.github.com/users/MridulS/following{/other_user}","gists_url":"https://api.github.com/users/MridulS/gists{/gist_id}","starred_url":"https://api.github.com/users/MridulS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MridulS/subscriptions","organizations_url":"https://api.github.com/users/MridulS/orgs","repos_url":"https://api.github.com/users/MridulS/repos","events_url":"https://api.github.com/users/MridulS/events{/privacy}","received_events_url":"https://api.github.com/users/MridulS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MridulS/networkx","description":"Official NetworkX source code repository.  ","fork":true,"url":"https://api.github.com/repos/MridulS/networkx","forks_url":"https://api.github.com/repos/MridulS/networkx/forks","keys_url":"https://api.github.com/repos/MridulS/networkx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MridulS/networkx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MridulS/networkx/teams","hooks_url":"https://api.github.com/repos/MridulS/networkx/hooks","issue_events_url":"https://api.github.com/repos/MridulS/networkx/issues/events{/number}","events_url":"https://api.github.com/repos/MridulS/networkx/events","assignees_url":"https://api.github.com/repos/MridulS/networkx/assignees{/user}","branches_url":"https://api.github.com/repos/MridulS/networkx/branches{/branch}","tags_url":"https://api.github.com/repos/MridulS/networkx/tags","blobs_url":"https://api.github.com/repos/MridulS/networkx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MridulS/networkx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MridulS/networkx/git/refs{/sha}","trees_url":"https://api.github.com/repos/MridulS/networkx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MridulS/networkx/statuses/{sha}","languages_url":"https://api.github.com/repos/MridulS/networkx/languages","stargazers_url":"https://api.github.com/repos/MridulS/networkx/stargazers","contributors_url":"https://api.github.com/repos/MridulS/networkx/contributors","subscribers_url":"https://api.github.com/repos/MridulS/networkx/subscribers","subscription_url":"https://api.github.com/repos/MridulS/networkx/subscription","commits_url":"https://api.github.com/repos/MridulS/networkx/commits{/sha}","git_commits_url":"https://api.github.com/repos/MridulS/networkx/git/commits{/sha}","comments_url":"https://api.github.com/repos/MridulS/networkx/comments{/number}","issue_comment_url":"https://api.github.com/repos/MridulS/networkx/issues/comments{/number}","contents_url":"https://api.github.com/repos/MridulS/networkx/contents/{+path}","compare_url":"https://api.github.com/repos/MridulS/networkx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MridulS/networkx/merges","archive_url":"https://api.github.com/repos/MridulS/networkx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MridulS/networkx/downloads","issues_url":"https://api.github.com/repos/MridulS/networkx/issues{/number}","pulls_url":"https://api.github.com/repos/MridulS/networkx/pulls{/number}","milestones_url":"https://api.github.com/repos/MridulS/networkx/milestones{/number}","notifications_url":"https://api.github.com/repos/MridulS/networkx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MridulS/networkx/labels{/name}","releases_url":"https://api.github.com/repos/MridulS/networkx/releases{/id}","created_at":"2015-02-03T16:19:52Z","updated_at":"2015-04-25T14:54:10Z","pushed_at":"2015-07-03T17:35:50Z","git_url":"git://github.com/MridulS/networkx.git","ssh_url":"git@github.com:MridulS/networkx.git","clone_url":"https://github.com/MridulS/networkx.git","svn_url":"https://github.com/MridulS/networkx","homepage":"http://networkx.github.io","size":14021,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"networkx:iter_refactor","ref":"iter_refactor","sha":"0adb41890827b629b2ebf76c52f22ab8a7b77e1c","user":{"login":"networkx","id":388785,"avatar_url":"https://avatars.githubusercontent.com/u/388785?v=3","gravatar_id":"","url":"https://api.github.com/users/networkx","html_url":"https://github.com/networkx","followers_url":"https://api.github.com/users/networkx/followers","following_url":"https://api.github.com/users/networkx/following{/other_user}","gists_url":"https://api.github.com/users/networkx/gists{/gist_id}","starred_url":"https://api.github.com/users/networkx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networkx/subscriptions","organizations_url":"https://api.github.com/users/networkx/orgs","repos_url":"https://api.github.com/users/networkx/repos","events_url":"https://api.github.com/users/networkx/events{/privacy}","received_events_url":"https://api.github.com/users/networkx/received_events","type":"Organization","site_admin":false},"repo":{"id":890377,"name":"networkx","full_name":"networkx/networkx","owner":{"login":"networkx","id":388785,"avatar_url":"https://avatars.githubusercontent.com/u/388785?v=3","gravatar_id":"","url":"https://api.github.com/users/networkx","html_url":"https://github.com/networkx","followers_url":"https://api.github.com/users/networkx/followers","following_url":"https://api.github.com/users/networkx/following{/other_user}","gists_url":"https://api.github.com/users/networkx/gists{/gist_id}","starred_url":"https://api.github.com/users/networkx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networkx/subscriptions","organizations_url":"https://api.github.com/users/networkx/orgs","repos_url":"https://api.github.com/users/networkx/repos","events_url":"https://api.github.com/users/networkx/events{/privacy}","received_events_url":"https://api.github.com/users/networkx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/networkx/networkx","description":"Official NetworkX source code repository.  ","fork":false,"url":"https://api.github.com/repos/networkx/networkx","forks_url":"https://api.github.com/repos/networkx/networkx/forks","keys_url":"https://api.github.com/repos/networkx/networkx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/networkx/networkx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/networkx/networkx/teams","hooks_url":"https://api.github.com/repos/networkx/networkx/hooks","issue_events_url":"https://api.github.com/repos/networkx/networkx/issues/events{/number}","events_url":"https://api.github.com/repos/networkx/networkx/events","assignees_url":"https://api.github.com/repos/networkx/networkx/assignees{/user}","branches_url":"https://api.github.com/repos/networkx/networkx/branches{/branch}","tags_url":"https://api.github.com/repos/networkx/networkx/tags","blobs_url":"https://api.github.com/repos/networkx/networkx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/networkx/networkx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/networkx/networkx/git/refs{/sha}","trees_url":"https://api.github.com/repos/networkx/networkx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/networkx/networkx/statuses/{sha}","languages_url":"https://api.github.com/repos/networkx/networkx/languages","stargazers_url":"https://api.github.com/repos/networkx/networkx/stargazers","contributors_url":"https://api.github.com/repos/networkx/networkx/contributors","subscribers_url":"https://api.github.com/repos/networkx/networkx/subscribers","subscription_url":"https://api.github.com/repos/networkx/networkx/subscription","commits_url":"https://api.github.com/repos/networkx/networkx/commits{/sha}","git_commits_url":"https://api.github.com/repos/networkx/networkx/git/commits{/sha}","comments_url":"https://api.github.com/repos/networkx/networkx/comments{/number}","issue_comment_url":"https://api.github.com/repos/networkx/networkx/issues/comments{/number}","contents_url":"https://api.github.com/repos/networkx/networkx/contents/{+path}","compare_url":"https://api.github.com/repos/networkx/networkx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/networkx/networkx/merges","archive_url":"https://api.github.com/repos/networkx/networkx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/networkx/networkx/downloads","issues_url":"https://api.github.com/repos/networkx/networkx/issues{/number}","pulls_url":"https://api.github.com/repos/networkx/networkx/pulls{/number}","milestones_url":"https://api.github.com/repos/networkx/networkx/milestones{/number}","notifications_url":"https://api.github.com/repos/networkx/networkx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/networkx/networkx/labels{/name}","releases_url":"https://api.github.com/repos/networkx/networkx/releases{/id}","created_at":"2010-09-06T00:53:44Z","updated_at":"2015-07-03T12:27:59Z","pushed_at":"2015-07-04T02:03:43Z","git_url":"git://github.com/networkx/networkx.git","ssh_url":"git@github.com:networkx/networkx.git","clone_url":"https://github.com/networkx/networkx.git","svn_url":"https://github.com/networkx/networkx","homepage":"http://networkx.github.io","size":22890,"stargazers_count":1463,"watchers_count":1463,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":474,"mirror_url":null,"open_issues_count":235,"forks":474,"open_issues":235,"watchers":1463,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1634"},"html":{"href":"https://github.com/networkx/networkx/pull/1634"},"issue":{"href":"https://api.github.com/repos/networkx/networkx/issues/1634"},"comments":{"href":"https://api.github.com/repos/networkx/networkx/issues/1634/comments"},"review_comments":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1634/comments"},"review_comment":{"href":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1634/commits"},"statuses":{"href":"https://api.github.com/repos/networkx/networkx/statuses/141fbf58bfe28d27c55936da13ebfa44a98fb733"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dschult","id":915037,"avatar_url":"https://avatars.githubusercontent.com/u/915037?v=3","gravatar_id":"","url":"https://api.github.com/users/dschult","html_url":"https://github.com/dschult","followers_url":"https://api.github.com/users/dschult/followers","following_url":"https://api.github.com/users/dschult/following{/other_user}","gists_url":"https://api.github.com/users/dschult/gists{/gist_id}","starred_url":"https://api.github.com/users/dschult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschult/subscriptions","organizations_url":"https://api.github.com/users/dschult/orgs","repos_url":"https://api.github.com/users/dschult/repos","events_url":"https://api.github.com/users/dschult/events{/privacy}","received_events_url":"https://api.github.com/users/dschult/received_events","type":"User","site_admin":false},"comments":0,"review_comments":7,"commits":3,"additions":35,"deletions":35,"changed_files":6}}