-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add G(n,m) random graph generator (#176)
* Add G(n,m) random graph generator This adds two G(n,m) graph generators, one directed and one undirected. The generated graph will be a random graph out of all the possible graphs that are n nodes and m edges with max n*(n-1) edges for directed graphs and n*(n-1)/2 for undirected graphs, avoiding self-loops and multigraphs. The run time is O(n+m) Fixes #174 * Change !.is_some() to is_none() Apply suggestions from code review
- Loading branch information
1 parent
fff0fae
commit 9c4ecf5
Showing
3 changed files
with
242 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters