| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* See matplotlb 3.6rc1 failure
* replace use of private class method to allow mpl v3.6 to work.
* ensure ax exists before calling colorbar
* Undo matplotlib pin
Co-authored-by: Dan Schult <dschult@colgate.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* docstring update to lex-topo-sort
- explain effect and purpose for lexi sort
- add hints for fixing non-sortable nodes
- add hint to exception msg
- Add examples
* Shorten the first line of the doc_string
Co-authored-by: Dan Schult <dschult@colgate.edu>
* Generalize the description of sort failures
Co-authored-by: Dan Schult <dschult@colgate.edu>
* more succinct description of key function
Co-authored-by: Dan Schult <dschult@colgate.edu>
* improve description of key function
Co-authored-by: Dan Schult <dschult@colgate.edu>
* Black'd it.
Co-authored-by: Dan Schult <dschult@colgate.edu>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* WIP: Replace functions to evaluate tests.
* Raise prompt exceptions by wrapping generator.
* Fix erroneous ground-truth self-ancestor in tests.
* Move pair creation outside of generator and validate.
* Convert input with fromkeys to preserve order and rm duplicates.
* Replace LCA implementations & update tests.
* Test cleanup: move new tests into old class.
Allows us to get rid of duplication/another test setup.
* Rm naive fns from refguide.
* Add release note.
* Remove unused imports.
* Remove missed duplicate function (bad rebase).
Co-authored-by: Dilara Tekinoglu <dilaranurtuncturk@gmail.com>
|
|
|
|
|
|
|
| |
* Remove explicit checks for None nodes.
The graph objects already do not allow None nodes.
* Change elif to if for raising branches.
|
|
|
|
|
|
|
|
|
|
|
| |
* update all_pairs_lca docstrings
* typo
* changed docstring acc to numpydoc format
* Minor fixups.
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
|
|
|
|
|
|
| |
* Fix examples section formatting in condensed docstr.
* Rm stray reference to ordered grpahs.
* Add naive LCA algs to reference guide.
* Fix heading names in LCA docstrings.
|
|
|
|
|
| |
* Add examples for the condensation function
* Added comments and removed unnecessary operation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add naive lca methods
* Naive algorithm implementation for LCA
* Modify naive lca functions
* Correct parameters of nx.ancestors
* Update lowest_common_ancestors.py
* Parametrize tests
* Apply suggestions from code review
Co-authored-by: Dan Schult <dschult@colgate.edu>
* Yield instead of append
* Tests for naive lca
* Correct test cases for naive lca algorithms
* Apply suggestions from code review
Co-authored-by: Mridul Seth <mail@mriduls.com>
* Fix function name -when calling
* Make requested changes
* Inlining _get_a_lowest_common_ancestor
Co-authored-by: dtuncturk <dilaramemis@sabanciuniv.edu>
Co-authored-by: Dan Schult <dschult@colgate.edu>
Co-authored-by: Mridul Seth <mail@mriduls.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add examples to lowest common ancestors documentation
* Fix output style of examples
* Fix output style of example
* Update pre-commit
* Update networkx/algorithms/lowest_common_ancestors.py
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Update networkx/algorithms/lowest_common_ancestors.py
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Indentation fix & pprint dictionary
* Update networkx/algorithms/lowest_common_ancestors.py
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Update networkx/algorithms/lowest_common_ancestors.py
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Update networkx/algorithms/lowest_common_ancestors.py
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Move "import pprint" to the example
Co-authored-by: dtuncturk <dilaramemis@sabanciuniv.edu>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
|
|
|
| |
* Bump deprecation expiration for nodelink params to v3.2.
* Fixup warnings filter.
|
|
|
| |
Propose to make new node_link args kwarg only.
|
|
|
| |
Add function bfs_layers to docs. fix two doc formatting typos
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* reformatted the files
* reformatted the files
* added final changes
* changed descendants_at_distance
* fixed comment in bfs_layers
* fixed comment in bfs_layers
|
|
|
|
|
| |
gh-5901 (#5902)
Fix gh-5901 by yielding a copy of the sets in the partition
|
|
|
|
|
|
|
|
|
| |
* Allow unsortable nodes in approximate treewidth functions
* Apply suggestions from code review
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* Remove old Appveyor cruft
* Fix Windows issue
|
| |
|
|
|
| |
Update about_us.rst
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* Update docs to include description of the `return_seen` kwarg
Update docs to include description of the `return_seen` kwarg (previously not documented)
* Run black on the file
* Update unweighted.py
|
| |
|
|
|
|
|
| |
Just came across a weird thing when trying to render with papyri,
and it looks like what was attempted here was a list enumeration, so
converting to a enumerated list instead of a code/verbatim block
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Fixes installation of pygraphviz on macOS-latest in github actions
|
| |
|
|
|
|
|
| |
* make lazy_import private and remove its internal use
* add back the non-lazy imports of numpy to utils.misc
|
|
|
|
|
| |
* Add Morse trie encoding example to gallery.
* Clarify explanation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Point to Python 3.x doc for the description.
This is a nit patch though,
use 3.x document url as Python 2.x has been deprecated a long time ago.
* Update doc/reference/glossary.rst
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* period.
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
| |
Move factory attributes to the class instead of instance. ?speedup?
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Automate reset of cache for _adj,_pred,_succ
* Make G._adj a data descriptor that resets G.adj when needed.
* update places in the code where both G._succ and G._adj are changed
This is no longer needed since G._succ and G._adj are synced during __set__
* testing hasattr(G, `_adj`) no longer ensures an instance.
* Make mypy happy
* Switch to hardcode attribute names in the data descriptors
* Improve doc_strings for the data descriptors
|
|
|
|
|
| |
* Potential fix?
* removed unneeded line
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update distance parameter description.
Update the description of the parameter in the
closeness_centrality function to note that by default, the edge
distances (weights) are assumed to be 1, and that no input
validation is performed.
* Fix styling.
* Update networkx/algorithms/centrality/closeness.py
Co-authored-by: Dan Schult <dschult@colgate.edu>
* Make black happy.
Co-authored-by: Dan Schult <dschult@colgate.edu>
|
| |
|
| |
|
|
|
| |
Fix #5620 with typo in bipartite closeness_centrality and thought-o in tests
|
|
|
| |
The docstring now reflects on heuristic admissibility and heuristic value caching
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Add more comprehensive tests for pydot
* remove the second element from frozenset for cleaner tests
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|