summaryrefslogtreecommitdiff
path: root/networkx/readwrite/sparse6.py
Commit message (Collapse)AuthorAgeFilesLines
* Update developer requirements (#6429)Jarrod Millman2023-02-141-1/+1
| | | | | * Update developer requirements * Run linter
* Remove old Appveyor cruft (#5924)Jarrod Millman2022-08-111-2/+2
| | | | | * Remove old Appveyor cruft * Fix Windows issue
* Use isort with pre-commit to enforce import guidelines (#5659)Mridul Seth2022-06-021-1/+1
| | | | | * Add isort to pre-commit * Run isort on all python files (except __init__.py ones)
* 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>
* Update sparse6 urls to use https (#5424)Ross Barnowski2022-03-251-6/+6
| | | [ci skip]
* Format python in docstrings (#4168)Jarrod Millman2020-08-191-3/+3
| | | | | | | | | | | | | | | | | | | * 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>
* Format w/ blackJarrod Millman2020-07-101-20/+27
|
* 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-4/+0
|
* PEP8 fixesJarrod Millman2019-10-181-1/+1
|
* Enable more doctestsJarrod Millman2019-10-181-3/+3
|
* Remove old Python 2 codeJarrod Millman2019-10-181-4/+1
|
* Update copyrightJarrod Millman2019-03-301-1/+1
|
* Replacing `Return` to `Returns` in docs for functions (#3301)Moradnejad2019-02-181-1/+1
| | | | | | * Fixed problem in documentation view of this function * Replacing `Return` to `Returns` in function docs
* Pull request to set up python3.7 testing on travis (#3054)Dan Schult2018-07-081-2/+8
| | | | | | | | | | | | * Fix StopIteration handling which breaks in python 3.7 Fixes #3046 * Shift from testing py3.4 to py3.7 in travis * Allow failures on python 3.7 * Try testing py37-dev version
* Misc. typos (#2872)luzpaz2018-02-141-1/+1
| | | | | | | | | | Found via `codespell -q 3 -I ../networkx-whitelist.txt` where whitelist consisted of: ``` ans childs iff nd te ```
* Pep8 fixesJarrod Millman2018-01-201-20/+20
|
* Update copyrightJarrod Millman2018-01-201-1/+1
|
* Merge branch 'jfinkels-reduce-memory-graph6'Aric Hagberg2017-11-251-117/+184
|\
| * Makes write_graph6 less memory-intensive.Jeffrey Finkelstein2016-12-151-117/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the implementation of the `write_graph6` function so that it makes better use of iterators and writes directly to file instead of buffering the entire encoding of the graph as a string in memory before writing. This commit also removes the `generate_graph6` function, since it's functionality can be simulated by using the `write_graph6` function to write to a file. This change requires updating the code to explicitly require `bytes` when reading and writing graph6 data. This means updating `sparse6` code as well. Finally, this commit standardizes the graph6 and sparse6 encoding/decoding functions into four functions each: `to_graph6_bytes`, `from_graph6_bytes`, `read_graph6`, and `write_graph6`, and the corresponding functions for sparse6.
* | Update copyrightJarrod Millman2017-07-251-1/+1
|/
* Fix test ordering in readwriteAric Hagberg2016-07-311-9/+4
| | | | | | | | | | Some interesting finds here and one that I don't understand. Using OrderedGraph is helpful in writing tests of output to get deterministic order. But OrderedDict __repr__ is 'OrderedDict()' so I made an ugly modification in generate_edgelist. I don't understand why the sparse6 write requires the sorted order to pass the tests. There might be a bug here. I fixed a bug in graph6 where the nodes needed to be sorted
* Remove sphinx errors that have crept in.Dan Schult2016-04-141-1/+2
| | | | Also remove outdated sphinx.ext.pngmath (RTD uses mathjax now)
* Cleans documentation for graph6 and sparse6 I/O.Jeffrey Finkelstein2016-02-171-21/+28
|
* Update copyrightsMridul Seth2016-01-011-1/+1
|
* Fix copyrightsJGab2015-04-211-1/+1
|
* Ensure that graph6 and sparse6 tests do no leave behind temporary filesYingchong Situ2014-10-301-0/+6
|
* Use multigraph in testAric Hagberg2013-12-151-2/+2
|
* Add back linefeed on writeAric Hagberg2013-12-151-0/+1
|
* Fix StringIO to work with python2/3Aric Hagberg2013-12-151-8/+5
|
* Add docsAric Hagberg2013-12-151-6/+145
|
* Return graph type if no parallel edgesAric Hagberg2013-12-151-2/+8
|
* Formatting, whitespace cleanupAric Hagberg2013-12-151-92/+76
|
* Remove *list functionsAric Hagberg2013-12-151-22/+9
|
* Split sparsegraph6 into sparse6 and graph6Aric Hagberg2013-12-131-0/+188