Add random graph generator (#5240) · zinating/algorithms-python@ba71005 · GitHub
Skip to content

Commit ba71005

Browse files
Add random graph generator (TheAlgorithms#5240)
* added complete graph generator function * added doctest, type hints, wikipedia explanation * added return type hint for function complete_graph * added descriptive name for the parameter: n * random graph generator with doctest and type hints * validated using pre-commit * Delete complete_graph_generator.py * fixed doctest * updated following reviews * simplified the code following reviews * fixed doctest and solved consistency issues * consistency fixes
1 parent 568c107 commit ba71005

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

graphs/random_graph_generator.py

Lines changed: 67 additions & 0 deletions

0 commit comments

Comments
 (0)