{"action":"created","issue":{"url":"https://api.github.com/repos/networkx/networkx/issues/2905","repository_url":"https://api.github.com/repos/networkx/networkx","labels_url":"https://api.github.com/repos/networkx/networkx/issues/2905/labels{/name}","comments_url":"https://api.github.com/repos/networkx/networkx/issues/2905/comments","events_url":"https://api.github.com/repos/networkx/networkx/issues/2905/events","html_url":"https://github.com/networkx/networkx/pull/2905","id":305696343,"node_id":"MDExOlB1bGxSZXF1ZXN0MTc1MzYxMDQ1","number":2905,"title":"Add stochastic block models to generators","user":{"login":"jg-you","id":6925003,"node_id":"MDQ6VXNlcjY5MjUwMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/6925003?v=4","gravatar_id":"","url":"https://api.github.com/users/jg-you","html_url":"https://github.com/jg-you","followers_url":"https://api.github.com/users/jg-you/followers","following_url":"https://api.github.com/users/jg-you/following{/other_user}","gists_url":"https://api.github.com/users/jg-you/gists{/gist_id}","starred_url":"https://api.github.com/users/jg-you/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jg-you/subscriptions","organizations_url":"https://api.github.com/users/jg-you/orgs","repos_url":"https://api.github.com/users/jg-you/repos","events_url":"https://api.github.com/users/jg-you/events{/privacy}","received_events_url":"https://api.github.com/users/jg-you/received_events","type":"User","site_admin":false},"labels":[{"id":121661134,"node_id":"MDU6TGFiZWwxMjE2NjExMzQ=","url":"https://api.github.com/repos/networkx/networkx/labels/Enhancement","name":"Enhancement","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/networkx/networkx/milestones/10","html_url":"https://github.com/networkx/networkx/milestone/10","labels_url":"https://api.github.com/repos/networkx/networkx/milestones/10/labels","id":2936870,"node_id":"MDk6TWlsZXN0b25lMjkzNjg3MA==","number":10,"title":"networkx-2.2","description":"Date TBD","creator":{"login":"hagberg","id":187875,"node_id":"MDQ6VXNlcjE4Nzg3NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/187875?v=4","gravatar_id":"","url":"https://api.github.com/users/hagberg","html_url":"https://github.com/hagberg","followers_url":"https://api.github.com/users/hagberg/followers","following_url":"https://api.github.com/users/hagberg/following{/other_user}","gists_url":"https://api.github.com/users/hagberg/gists{/gist_id}","starred_url":"https://api.github.com/users/hagberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagberg/subscriptions","organizations_url":"https://api.github.com/users/hagberg/orgs","repos_url":"https://api.github.com/users/hagberg/repos","events_url":"https://api.github.com/users/hagberg/events{/privacy}","received_events_url":"https://api.github.com/users/hagberg/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":90,"state":"open","created_at":"2017-11-25T19:48:17Z","updated_at":"2018-06-29T21:10:30Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2018-03-15T19:51:01Z","updated_at":"2018-06-30T01:46:16Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/networkx/networkx/pulls/2905","html_url":"https://github.com/networkx/networkx/pull/2905","diff_url":"https://github.com/networkx/networkx/pull/2905.diff","patch_url":"https://github.com/networkx/networkx/pull/2905.patch"},"body":"This is fairly straightforward PR, I've implemented the classical \"binomial\" SBM in `generators/community.py`.\r\n\r\nThere's a sparse switch that will create edges by jumping ahead by a random number of  non-edges,\r\ndrawn from a geometric distribution. This is the default. In the dense case, I use a Bernoulli test on each edges.\r\n\r\nNote that with this PR,  `random_partition_graph` could be refactored as a call to `stochastic_block_model` (as well as `gnp_random_graph` and other Erdos Renyi type graphs).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/networkx/networkx/issues/comments/401509251","html_url":"https://github.com/networkx/networkx/pull/2905#issuecomment-401509251","issue_url":"https://api.github.com/repos/networkx/networkx/issues/2905","id":401509251,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTUwOTI1MQ==","user":{"login":"jg-you","id":6925003,"node_id":"MDQ6VXNlcjY5MjUwMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/6925003?v=4","gravatar_id":"","url":"https://api.github.com/users/jg-you","html_url":"https://github.com/jg-you","followers_url":"https://api.github.com/users/jg-you/followers","following_url":"https://api.github.com/users/jg-you/following{/other_user}","gists_url":"https://api.github.com/users/jg-you/gists{/gist_id}","starred_url":"https://api.github.com/users/jg-you/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jg-you/subscriptions","organizations_url":"https://api.github.com/users/jg-you/orgs","repos_url":"https://api.github.com/users/jg-you/repos","events_url":"https://api.github.com/users/jg-you/events{/privacy}","received_events_url":"https://api.github.com/users/jg-you/received_events","type":"User","site_admin":false},"created_at":"2018-06-30T01:46:16Z","updated_at":"2018-06-30T01:46:16Z","author_association":"CONTRIBUTOR","body":"The CI failure comes from float precision in the examples. How is this best addressed?"}}
{"actor":{"display_login":"jg-you"}}