| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
(#6040)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
* Run linter
|
| |
|
| |
Fixes gh-5981: Add missing asserts to tests
|
| |
|
| |
Propose to make new node_link args kwarg only.
|
| |
|
|
|
| |
* Bump deprecation expiration for nodelink params to v3.2.
* Fixup warnings filter.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* added tests for new signature
- kept all the original tests.
Tagged the tests to remove after signature change is complete.
- leveraged a test from test_cyctoscape.py, checks for warnings.
- made new versions of tests that use attrs in the signature.
* Verified that the new tests fail. Good.
* update signatures with keywords
* added warning message
* adapted code to use keywords
* move test with recwarn fixture outside of class
when recwarn was used in a method, got an error.
work fine in a function.
* add warning to node_link_graph()
* update node_link_graph() to use keywords
* use recwarn in test to dectect warnings
* added deprecation notices to doc strings.
Needs version number for when deprecation will happen
* added example code from doc string to tests
* gave default values to elements of attrs
the example code passes a dict with only some of the keywords defined.
So the defaults needed to be provided
* fixed name conflict
* brace in docstring
* drop braces in doc string example
* Changed namespace to nx in doc string examples
* update the examples
- show the results of the examples
- add more examples of serialization with json
* Update doc desc and notes
- Add reference to Serialization in the method description.
- add a note that the keywords chose for the attributes names must match
if the two functions are to be used together
* clean up wording
* document the version numbers for deprecating
deprecate the change in 2.8.6
remove the change in 3.1
* Add note, on using old and new keywords together
* Add Deprecation Warning to conftest.py
* Add a reminder to remove code & docs in 3.1
|
| | |
|
| |
|
| |
update cytoscape functions with new signature
|
| |
|
| |
Co-authored-by: dtuncturk <dilaramemis@sabanciuniv.edu>
|
| |
|
|
|
| |
* Add isort to pre-commit
* Run isort on all python files (except __init__.py ones)
|
| |
|
|
|
|
|
|
|
| |
* Add _to_tuple private fn to node_link.py.
* Deprecate utils.misc.to_tuple.
* Add deprecation note.
* Add release note.
|
| | |
|
| |
|
|
|
|
|
| |
* Rm deprecated scipy subpkg access.
* Use recwarn fixture in place of deprecated pytest pattern.
* Rm unnecessary try/except from tests.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
| |
Co-authored-by: Dan Schult <dschult@colgate.edu>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| |
|
|
|
|
|
| |
* Setup for numpydoc.
* Add to doc requirements.
* Replace napoleon with numpydoc in conf.py.
* DOC: Fixups from numpydoc.
|
| |
|
|
|
| |
* Remove example
* Deprecate jit_graph / jit_data
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
signatures. (#4284)
* MAINT: refactor param parsing and checking.
* Add futurewarning for changing cytoscape signature.
If attrs kwarg is used, raise a detailed future warning about how the
function signature will change.
* TST: Add tests for cytoscape futurewarning.
This test should fail if the future warning is removed -
useful to remind developers that the function signature
should change in 3.0
* Add cytoscape signature change to deplist in docs
Co-authored-by: Jarrod Millman <jarrod.millman@gmail.com>
|
| |
|
|
| |
- tree_graph
- edgelist
|
| |
|
| |
one is duplicate and one is self-referential. https://networkx.github.io/documentation/stable/reference/readwrite/generated/networkx.readwrite.json_graph.tree_data.html
|
| |
|
|
|
|
|
| |
* DOC: Add sections to cytoscape_data docstring
* DOC: Add docstring to cytoscape_graph
* DOC: Fix incorrect dict in parameter spec
|
| |
|
|
|
|
|
|
|
|
|
| |
(#4176)
* fix issue #4173: readwrite.json_graph.cytoscape_graph(input_data) did modify the original data
* improve test function
* improve test function with @rossbar suggestion
* improve function cytoscape_graph as suggested by @rossbar: direct access is better, to raise exception if "source" or "target" are not present.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| | |
|
| |
|
|
|
|
|
| |
* added default arg for json dumps for jit_data func
* added function docstring for the default parameter
Co-authored-by: Pedro Ortale <pedro.ortale@rackspace.co.uk>
|
| |
|
|
| |
find networkx -name \*.py -exec pyupgrade --py36-plus {} \;
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Fixes #3197
|
| | |
|
| |
|
|
|
|
| |
* Fixed problem in documentation view of this function
* Replacing `Return` to `Returns` in function docs
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
* Add directed graphs support for jit_graph reading
* Solving spaces/tabs error
* Add create_using argument to jit_graph. Add tests.
|
| | |
|
| |
|
|
|
|
| |
* Fix links
* Comply with pep8
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#2475)
* Dont assume iterators for nodes/edges/degrees (prep for views)
* Add graph view classes for nodes/edges/degree
* Add right set operations (not present in python3.3 KeysView
* Add nodes before adding edges so python36 tests work
By only adding edges, the nodes were added in order (0,1,3,2)
and with the ordered nature of python3.6 dicts the tests failed.
Could also fix by using nodelist on each call to to_convert_...
* weighted graph convert tests testing empty graphs
The edge iterator was exhausted for source before being used for dest
* allow DegreeView to include case of nbunch
* Make node/edge/degree properties of Graph
* View contains fix and Viewers can return self. More tests
* Add more tests including one for #2347
* Add nbunch tests and pep8
* Rename to EdgeView and EdgeDataView
* docs tweaks and pep8
* fix up nodeDataView contains. Add and clean up tests.
* Change the graph attributes to read-only properties
* Reframe views code and extend _node to all networkx (still need
examples)
* Clean up and pep8 for view changes
* ername AtlasViews, simplify code and add docstrings
* Make G[u] return a view, and catch some doc bugs
* Update views to use _node,_adj. Add len to EdgeDataView
* minor adjustments to example subclass/printgraph
|
| |
|
|
| |
also set and dict creation changed.
|
| |\
| |
| | |
Fix for issues #2328 and #2332
|