{"action":"created","comment":{"url":"https://api.github.com/repos/networkx/networkx/pulls/comments/39926010","id":39926010,"diff_hunk":"@@ -305,3 +308,83 @@ def _choose_node(G, distribution, delta, psum):\n         \n     return G\n \n+\n+def random_k_out_graph(n, k, alpha, self_loops=True):","path":"networkx/generators/directed.py","position":41,"original_position":41,"commit_id":"83e5df6296d37adb15c54c68f45b4eae6695c1f3","original_commit_id":"83e5df6296d37adb15c54c68f45b4eae6695c1f3","user":{"login":"chebee7i","id":326005,"avatar_url":"https://avatars.githubusercontent.com/u/326005?v=3","gravatar_id":"","url":"https://api.github.com/users/chebee7i","html_url":"https://github.com/chebee7i","followers_url":"https://api.github.com/users/chebee7i/followers","following_url":"https://api.github.com/users/chebee7i/following{/other_user}","gists_url":"https://api.github.com/users/chebee7i/gists{/gist_id}","starred_url":"https://api.github.com/users/chebee7i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chebee7i/subscriptions","organizations_url":"https://api.github.com/users/chebee7i/orgs","repos_url":"https://api.github.com/users/chebee7i/repos","events_url":"https://api.github.com/users/chebee7i/events{/privacy}","received_events_url":"https://api.github.com/users/chebee7i/received_events","type":"User","site_admin":false},"body":"Did we ever decide on an API to make these functions have reproducible behavior?  #1550. It would be nice if we could at least provide the seed or the prng instance that the algorithm uses.","created_at":"2015-09-20T02:08:22Z","updated_at":"2015-09-20T02:08:22Z","html_url":"https://github.com/networkx/networkx/pull/1768#discussion_r39926010","pull_request_url":"https://api.github.com/repos/networkx/networkx/pulls/1768","_links":{"self":{"href":"https://api.github.com/repos/networkx/networkx/pulls/comments/39926010"},"html":{"href":"https://github.com/networkx/networkx/pull/1768#discussion_r39926010"},"pull_request":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1768"}}},"pull_request":{"url":"https://api.github.com/repos/networkx/networkx/pulls/1768","id":45008120,"html_url":"https://github.com/networkx/networkx/pull/1768","diff_url":"https://github.com/networkx/networkx/pull/1768.diff","patch_url":"https://github.com/networkx/networkx/pull/1768.patch","issue_url":"https://api.github.com/repos/networkx/networkx/issues/1768","number":1768,"state":"open","locked":false,"title":"Implements random k-out graph generator.","user":{"login":"jfinkels","id":121755,"avatar_url":"https://avatars.githubusercontent.com/u/121755?v=3","gravatar_id":"","url":"https://api.github.com/users/jfinkels","html_url":"https://github.com/jfinkels","followers_url":"https://api.github.com/users/jfinkels/followers","following_url":"https://api.github.com/users/jfinkels/following{/other_user}","gists_url":"https://api.github.com/users/jfinkels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfinkels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfinkels/subscriptions","organizations_url":"https://api.github.com/users/jfinkels/orgs","repos_url":"https://api.github.com/users/jfinkels/repos","events_url":"https://api.github.com/users/jfinkels/events{/privacy}","received_events_url":"https://api.github.com/users/jfinkels/received_events","type":"User","site_admin":false},"body":"Fixes issue #1316.","created_at":"2015-09-15T04:32:45Z","updated_at":"2015-09-20T02:08:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"059bb3220be38d661d8bbb09c7a7a6cb2fb48eaf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/networkx/networkx/pulls/1768/commits","review_comments_url":"https://api.github.com/repos/networkx/networkx/pulls/1768/comments","review_comment_url":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/networkx/networkx/issues/1768/comments","statuses_url":"https://api.github.com/repos/networkx/networkx/statuses/83e5df6296d37adb15c54c68f45b4eae6695c1f3","head":{"label":"jfinkels:random-k-out","ref":"random-k-out","sha":"83e5df6296d37adb15c54c68f45b4eae6695c1f3","user":{"login":"jfinkels","id":121755,"avatar_url":"https://avatars.githubusercontent.com/u/121755?v=3","gravatar_id":"","url":"https://api.github.com/users/jfinkels","html_url":"https://github.com/jfinkels","followers_url":"https://api.github.com/users/jfinkels/followers","following_url":"https://api.github.com/users/jfinkels/following{/other_user}","gists_url":"https://api.github.com/users/jfinkels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfinkels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfinkels/subscriptions","organizations_url":"https://api.github.com/users/jfinkels/orgs","repos_url":"https://api.github.com/users/jfinkels/repos","events_url":"https://api.github.com/users/jfinkels/events{/privacy}","received_events_url":"https://api.github.com/users/jfinkels/received_events","type":"User","site_admin":false},"repo":{"id":18301430,"name":"networkx","full_name":"jfinkels/networkx","owner":{"login":"jfinkels","id":121755,"avatar_url":"https://avatars.githubusercontent.com/u/121755?v=3","gravatar_id":"","url":"https://api.github.com/users/jfinkels","html_url":"https://github.com/jfinkels","followers_url":"https://api.github.com/users/jfinkels/followers","following_url":"https://api.github.com/users/jfinkels/following{/other_user}","gists_url":"https://api.github.com/users/jfinkels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfinkels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfinkels/subscriptions","organizations_url":"https://api.github.com/users/jfinkels/orgs","repos_url":"https://api.github.com/users/jfinkels/repos","events_url":"https://api.github.com/users/jfinkels/events{/privacy}","received_events_url":"https://api.github.com/users/jfinkels/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jfinkels/networkx","description":"Official NetworkX source code repository.  ","fork":true,"url":"https://api.github.com/repos/jfinkels/networkx","forks_url":"https://api.github.com/repos/jfinkels/networkx/forks","keys_url":"https://api.github.com/repos/jfinkels/networkx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfinkels/networkx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfinkels/networkx/teams","hooks_url":"https://api.github.com/repos/jfinkels/networkx/hooks","issue_events_url":"https://api.github.com/repos/jfinkels/networkx/issues/events{/number}","events_url":"https://api.github.com/repos/jfinkels/networkx/events","assignees_url":"https://api.github.com/repos/jfinkels/networkx/assignees{/user}","branches_url":"https://api.github.com/repos/jfinkels/networkx/branches{/branch}","tags_url":"https://api.github.com/repos/jfinkels/networkx/tags","blobs_url":"https://api.github.com/repos/jfinkels/networkx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfinkels/networkx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfinkels/networkx/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfinkels/networkx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfinkels/networkx/statuses/{sha}","languages_url":"https://api.github.com/repos/jfinkels/networkx/languages","stargazers_url":"https://api.github.com/repos/jfinkels/networkx/stargazers","contributors_url":"https://api.github.com/repos/jfinkels/networkx/contributors","subscribers_url":"https://api.github.com/repos/jfinkels/networkx/subscribers","subscription_url":"https://api.github.com/repos/jfinkels/networkx/subscription","commits_url":"https://api.github.com/repos/jfinkels/networkx/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfinkels/networkx/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfinkels/networkx/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfinkels/networkx/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfinkels/networkx/contents/{+path}","compare_url":"https://api.github.com/repos/jfinkels/networkx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfinkels/networkx/merges","archive_url":"https://api.github.com/repos/jfinkels/networkx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfinkels/networkx/downloads","issues_url":"https://api.github.com/repos/jfinkels/networkx/issues{/number}","pulls_url":"https://api.github.com/repos/jfinkels/networkx/pulls{/number}","milestones_url":"https://api.github.com/repos/jfinkels/networkx/milestones{/number}","notifications_url":"https://api.github.com/repos/jfinkels/networkx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfinkels/networkx/labels{/name}","releases_url":"https://api.github.com/repos/jfinkels/networkx/releases{/id}","created_at":"2014-03-31T17:19:13Z","updated_at":"2015-05-03T02:01:32Z","pushed_at":"2015-09-17T01:07:27Z","git_url":"git://github.com/jfinkels/networkx.git","ssh_url":"git@github.com:jfinkels/networkx.git","clone_url":"https://github.com/jfinkels/networkx.git","svn_url":"https://github.com/jfinkels/networkx","homepage":"http:/networkx.lanl.gov/","size":14393,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"networkx:master","ref":"master","sha":"d24b13a58dc1ff84b46122e19711d07c4cdeebbd","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-09-19T15:03:24Z","pushed_at":"2015-09-20T02:00:15Z","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":23530,"stargazers_count":1583,"watchers_count":1583,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":511,"mirror_url":null,"open_issues_count":275,"forks":511,"open_issues":275,"watchers":1583,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1768"},"html":{"href":"https://github.com/networkx/networkx/pull/1768"},"issue":{"href":"https://api.github.com/repos/networkx/networkx/issues/1768"},"comments":{"href":"https://api.github.com/repos/networkx/networkx/issues/1768/comments"},"review_comments":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1768/comments"},"review_comment":{"href":"https://api.github.com/repos/networkx/networkx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/networkx/networkx/pulls/1768/commits"},"statuses":{"href":"https://api.github.com/repos/networkx/networkx/statuses/83e5df6296d37adb15c54c68f45b4eae6695c1f3"}}}}