summaryrefslogtreecommitdiff
path: root/networkx/utils/random_sequence.py
Commit message (Collapse)AuthorAgeFilesLines
* Use isort with pre-commit to enforce import guidelines (#5659)Mridul Seth2022-06-021-1/+0
| | | | | * Add isort to pre-commit * Run isort on all python files (except __init__.py ones)
* Remove redundant py2 numeric conversions (#5661)Mridul Seth2022-05-311-1/+1
| | | | | | | | | * Remove redundant float conversion * Remove redundant int conversion * Use integer division Co-authored-by: Miroslav Šedivý <6774676+eumiro@users.noreply.github.com>
* Update black (#5438)Mridul Seth2022-03-291-1/+1
| | | | | | | * CI: sync up black dev requirements version with precommit * Run black Co-authored-by: Jarrod Millman <jarrod.millman@gmail.com>
* Add missing __all__'s to utils modules + test. (#4753)Ross Barnowski2021-04-251-0/+10
| | | | | Adds __all__ attrs to modules in utils and adds a test to ensure objects and aliases defined in utils modules are not unintentionally exposed in the utils namespace.
* Format w/ blackJarrod Millman2020-07-101-4/+6
|
* Remove unused imports (#3855)Alex Henrie2020-07-061-1/+0
| | | | | | | | | * Remove unused imports * remove more unused import statements found by pyflakes * move import of random outside of networkx.utils Co-authored-by: Dan Schult <dschult@colgate.edu>
* Update links to Py3 docs (#4042)Jarrod Millman2020-07-021-1/+1
|
* Remove boiler plate from top of modulesJarrod Millman2019-11-111-10/+0
| | | | | | | | | The copyright and author stuff is not necessary, out-of-date, and inconsistent. It takes up visual space and is a pain to police everyone doing the same thing on the top of the module. Git handles authorship in a comprehensive and authoritative way. The LICENSE.txt file applies to all project code.
* Remove unused importsJarrod Millman2019-10-181-1/+0
|
* Enable more doctestsJarrod Millman2019-10-181-1/+2
|
* Update copyrightJarrod Millman2019-03-301-1/+1
|
* Replacing `Return` to `Returns` in docs for functions (#3301)Moradnejad2019-02-181-4/+4
| | | | | | * Fixed problem in documentation view of this function * Replacing `Return` to `Returns` in function docs
* Unify random state treatment across package (#3058)Dan Schult2018-07-161-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #1764 * Add a doc page to explain random number generator handling * replace deprecated numpy.random.random_integers with randint * First set of random_state decorator updates... utils and some generators * protect numpy import from failure is not there * fix doctests in randomness.rst * Update algorithms for new random_state paradigm * Fix tests dependent on python version * Update random_state paradigm in rest of the modules * fix tests for wierd cases. windows 32bit doesn't like big seeds. smallworld wasn't sending seed to utils.discrete_sequence * Add tests. Rewrite randomstate interface class to fix tests * anogther tweak for osx with no deps * improve doc examples for seed. Check all functions for seed independence. Calling with int seed should not affect global RNG * Add testing script and add more variates to RandomInterface * fix typo and remove unneeded file causing nodetest trouble * fix doctest for randomness.rst
* Update copyrightJarrod Millman2018-01-201-1/+1
|
* Fix links (#2663)Jarrod Millman2017-09-111-1/+1
| | | | | | * Fix links * Comply with pep8
* Use dollar sign for inline mathJarrod Millman2017-08-141-13/+16
|
* Comply with pep8Jarrod Millman2017-07-251-28/+28
|
* Remove zipf_sequenceJarrod Millman2017-07-251-10/+0
|
* Remove pareto_sequenceJarrod Millman2017-07-251-7/+0
|
* Remove uniform_sequenceJarrod Millman2017-07-251-7/+0
|
* Remove create_degree_sequence deprecated in 2013Jarrod Millman2017-07-251-44/+0
| | | | See a02b65560.
* Update copyrightJarrod Millman2017-07-251-1/+1
|
* Update copyrightsMridul Seth2016-01-011-1/+1
|
* List litteralRémy Léone2015-11-081-2/+1
|
* Fix copyrightsJGab2015-04-211-1/+1
|
* Deprecate create_degree_sequence.Aric Hagberg2013-08-251-0/+3
|
* Fix outdated/broken/error links in documentation.Aric Hagberg2013-07-211-1/+0
|
* Add doc for weighted_choice and random_weighted_sampleAric Hagberg2011-11-131-8/+14
|
* Add random degree sequence graph.Aric Hagberg2011-11-031-0/+20
| | | | Addresses #649
* Refactor large degree_seq.py into pieces and put non-generator pieces in ↵Aric Hagberg2011-11-031-0/+43
| | | | algorithms and utils.
* Refactor utils.Aric Hagberg2011-07-311-0/+154
Fixes #599 --HG-- rename : networkx/tests/test_utils.py => networkx/utils/tests/test_misc.py