| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
| | |
|
| |
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
(#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.
|
| | |
|
| |
|
|
| |
find networkx -name \*.py -exec pyupgrade --py36-plus {} \;
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Fixes #3197
|
| | |
|
| |
|
|
|
|
|
|
| |
* Add directed graphs support for jit_graph reading
* Solving spaces/tabs error
* Add create_using argument to jit_graph. Add tests.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* 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
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Improved tests
|
| |/ |
|
| |
|
|
|
|
| |
Combing through the code for any point where it pushes a dictionary to
the add_node method rather than keywords; augmenting these arguments
with ** to turn them into keyword arguments.
|
| |
|
|
| |
implemented jfinkels' comment to_tuple
|
| | |
|
| |
|
|
| |
added to_tuple to utils.misc
|
| |
|
|
| |
added to_tuple to utils.misc
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This complexity isn't really needed. You can simply write
>>> import json
>>> s = json.dumps(json_graph.node_link_data(G))
|
| | |
|
| |
|
|
| |
Addresses #827
|
| |
|
|
| |
Make sure we copy any data before we modify it so the input data is preserved.
|