summaryrefslogtreecommitdiff
path: root/networkx/algorithms/threshold.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos (#6620)Harri Nieminen2023-04-041-2/+2
|
* Lint using Ruff (#6371)danieleades2023-02-191-1/+1
| | | | | | | | | | | | | | | * lint and fix using ruff * add flake8-pie lints * remove useless import alias * bump version * bump deps --------- Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
* Update developer requirements (#6429)Jarrod Millman2023-02-141-1/+1
| | | | | * Update developer requirements * Run linter
* Fix typos in the networkx codebase (#6335)Anurag Bhat2023-01-051-4/+4
| | | | | * Fix_Typos * Commit_Suggestions
* Use isort with pre-commit to enforce import guidelines (#5659)Mridul Seth2022-06-021-0/+1
| | | | | * 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-4/+4
| | | | | | | | | * 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>
* Drop Py37 (#5143)Jarrod Millman2021-10-231-1/+1
| | | | | | | | | | | | | | | | | | | * Drop Py37 * XML serialization issue * Use math.comb Co-authored-by: Simone Gasperini <simone.gasperini2@studio.unibo.it> * Run pyupgrade --py38-plus * Run black * More documentation * Deprecate euclidean Co-authored-by: Simone Gasperini <simone.gasperini2@studio.unibo.it>
* Format python in docstrings (#4168)Jarrod Millman2020-08-191-2/+2
| | | | | | | | | | | | | | | | | | | * Format code w/ black * Format docstrings w/ black * Manual cleanup * Tell pytest to ignore planned deprecations * Don't call plt.show during testing * Another known deprecation * DOC: rm duplicate line from docstring example * Minor cleanup Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* DOC: Update docstrings for public functions in threshold module (#4167)Ross Barnowski2020-08-171-2/+51
| | | | | | | | | | | * DOC: Add docstring to is_threshold_graph. * DOC: Add another example to is_threshold_graph * DOC: Add docstring for find_threshold_graph * STY: rm trailing whitespace * DOC: Add imports to docstring examples
* Format w/ blackJarrod Millman2020-07-101-115/+118
|
* Convert %-format to fstringJarrod Millman2020-01-011-3/+3
|
* 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.
* PEP8 fixesJarrod Millman2019-10-181-6/+6
|
* Update copyrightJarrod Millman2019-03-301-1/+1
|
* Unify random state treatment across package (#3058)Dan Schult2018-07-161-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Enable create_using to be a constructor (#3004)Dan Schult2018-06-171-8/+4
| | | Related to #1393
* Misc. typos (#2872)luzpaz2018-02-141-2/+2
| | | | | | | | | | Found via `codespell -q 3 -I ../networkx-whitelist.txt` where whitelist consisted of: ``` ans childs iff nd te ```
* Update copyrightJarrod Millman2018-01-201-1/+1
|
* Add threshold testsJarrod Millman2017-08-171-355/+378
|
* Update copyrightJarrod Millman2017-07-251-1/+1
|
* Update copyrightsMridul Seth2016-01-011-1/+1
|
* Simplify chain comparisonsRémy Léone2015-11-141-1/+1
|
* Merge master into iter_refactorDan Schult2015-08-071-0/+910