summaryrefslogtreecommitdiff
path: root/networkx/algorithms/graph_hashing.py
Commit message (Collapse)AuthorAgeFilesLines
* corrections to docstring of `weisfeiler_lehman_subgraph_hashes` (#6598)Aaron Z2023-04-011-7/+12
| | | | | | | | | | | * corrections to docstring of weisfeiler_lehman_subgraph_hashes * Update networkx/algorithms/graph_hashing.py Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> --------- Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* DOC: examples code blacks needs a blank line (#5401)Matthias Bussonnier2022-03-191-0/+1
|
* Add weisfeiler lehman subgraph hashing (#4946)Aaron Z2021-09-121-54/+206
| | | | | | | | | | | | | | | | | | | | | * weisfeiler lehman subgraph hashing * address PR comments: restructure tests and improvements to hashing logic * slight speedup initialising node attribute labels * docstring changes based on pr comments * improved subgraph description and fixed a bug where edge directions are disregarded for isomorphism. Added tests for this case * Added warning on hash changes to release_dev.rst * Touch up release note. * Fix sphinx warning about underline lengths. Co-authored-by: Aaron Zolnai Lucas <aaronzolnailucas@quantexa.com> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Changes to rst files to make doctests pass (#4947)Dan Schult2021-07-071-4/+4
| | | | | | | | | | | | | | | | | | | * rst double colons for example code * add nx. prefix to doctest function calls * Remove one line from 1->2 migration rst file the line shows code that works for 1.x *and* 2.x. But it no longer works for all v2.x code. Readers should just use the next line of code, so no reason to keep this in the file. * capture output from subplot and rename DiGraph as DG in introduction.rst * skip running the entire test suite as an example in old_release_log.rst * doctest of examples * remove changes to nexp files
* DOC: Switch from napoleon to numpydoc sphinx extension (#4447)Ross Barnowski2020-12-121-1/+1
| | | | | | | * Setup for numpydoc. * Add to doc requirements. * Replace napoleon with numpydoc in conf.py. * DOC: Fixups from numpydoc.
* Format python in docstrings (#4168)Jarrod Millman2020-08-191-13/+19
| | | | | | | | | | | | | | | | | | | * 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>
* Remove unnecessary nx imports from doctests (#4163)Jarrod Millman2020-08-161-1/+0
| | | Co-authored-by: Dan Schult <dschult@colgate.edu>
* Format w/ blackJarrod Millman2020-07-101-13/+9
|
* ENH: Add new graph_hashing featureCarlos G. Oliver2020-07-071-0/+150
Adds graph_hashing module containing the Weisfeiler Lehman algorithm for hashing graphs. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>