summaryrefslogtreecommitdiff
path: root/networkx/readwrite/json_graph/tree.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unpacking operator on dicts to prevent constructing intermediate objects ↵DiamondJoseph2023-05-021-4/+2
| | | | (#6040)
* remove old attr keyword from json_graph/tree (#5785)Matt Schwennesen2022-06-161-69/+2
|
* 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)
* Add exception for unconnected graph (#5287)Dimitrios Papageorgiou2022-01-281-0/+2
|
* Remove dictionary from signature of tree_graph and tree_data (#4786)Ross Barnowski2021-05-181-23/+80
| | | | | | | | | | | | | | | * Deprecate attrs dict in json_graph.tree fns. Replace attrs dict in signature with explicit kwargs and add deprecation warning. Adds tests that the behavior isn't changed and that warnings are raised when expected. * Add deprecations to list and ignore warnings in conftest. * Modify cytoscape functions attrs deprecation. * Cleanup cytoscape test suite.
* Fix docstrings and remove unused variables (#4501)Andrea Tomassilli2021-01-091-5/+4
| | | | Co-authored-by: Dan Schult <dschult@colgate.edu> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* fix "see also" links in json_graph.tree (#4222)wim glenn2020-09-281-2/+2
| | | one is duplicate and one is self-referential. https://networkx.github.io/documentation/stable/reference/readwrite/generated/networkx.readwrite.json_graph.tree_data.html
* Format python in docstrings (#4168)Jarrod Millman2020-08-191-4/+4
| | | | | | | | | | | | | | | | | | | * 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-11/+11
|
* Upgrade to Py36 syntaxJarrod Millman2020-01-011-4/+4
| | | | find networkx -name \*.py -exec pyupgrade --py36-plus {} \;
* Remove boiler plate from top of modulesJarrod Millman2019-11-111-7/+1
| | | | | | | | | 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.
* Deprecate make_strJarrod Millman2019-10-211-3/+2
|
* Replacing `Return` to `Returns` in docs for functions (#3301)Moradnejad2019-02-181-2/+2
| | | | | | * Fixed problem in documentation view of this function * Replacing `Return` to `Returns` in function docs
* Removed unused imports (#2653)James Lamb2017-10-011-1/+1
|
* Simplify base classes. (#2604)Dan Schult2017-08-121-2/+2
| | | | | | | | | | * move selfloop methods out of graph classes into function.py * replace G.node with G.nodes. fix Pickle of views * Replace G.edge with G.edges * Add a few lines of docs for release realted to this PR.
* Modified all add_node, add_edge, and add_edges_from methods.thegreathippo2016-04-261-2/+2
| | | | | | | | I also went through and modified all attr_dict references to either directly assign keywords to node/edge attributes, or use the ** syntax to unpack the dictionaries. The only case of these I couldn't do is networkx.convert.py -- largely because I don't understand how multigraph edges work.
* Allow JSON attributes to be customizedysitu2014-05-301-35/+74
|
* JSON graph fix to handle unicode dict keysAric Hagberg2013-10-221-1/+2
|
* JSON graph data generators and serializers.Aric Hagberg2011-09-191-0/+113
Addresses #482