Skip to content

Optimal Edit Paths Return Section Improved - #7375

Merged
dschult merged 6 commits into
networkx:mainfrom
vanshika230:doc_optimaleditpaths
Apr 9, 2024
Merged

dschult merged 6 commits into
networkx:mainfrom
vanshika230:doc_optimaleditpaths

Conversation

@vanshika230

Copy link
Copy Markdown
Contributor

Closes #7353.
I have improved the Returns section of the optimal_edit_paths function based on the discussion on issue #7353. I have also referred to the stackoverflow discussion here. Do let me know any improvement. Thankyou!

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!
I have a very minor suggestion to split the insertion/deletion sentences into two sentences to make clear which is which. I also switch = to is because it is more like english (and python code comparison with None is supposed to use 'is'). But feel free to leave that as it is instead if you prefer.

Comment thread networkx/algorithms/similarity.py Resolved
Comment thread networkx/algorithms/similarity.py Resolved
@vanshika230

Copy link
Copy Markdown
Contributor Author

Thanks for this! I have a very minor suggestion to split the insertion/deletion sentences into two sentences to make clear which is which. I also switch = to is because it is more like english (and python code comparison with None is supposed to use 'is'). But feel free to leave that as it is instead if you prefer.

Changing to is is indeed better for easier understanding. Thanks!

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty of updating the formatting to improve the rendered html, but the content itself LGTM. Thanks @vanshika230 !

@dschult
dschult merged commit de27c07 into networkx:main Apr 9, 2024
@jarrodmillman jarrodmillman added this to the 3.4 milestone Apr 9, 2024
@vanshika230
vanshika230 deleted the doc_optimaleditpaths branch April 9, 2024 10:11
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
* Optimal Edit Paths Return Section Improved

* Update networkx/algorithms/similarity.py

Co-authored-by: Dan Schult <[email protected]>

* Update networkx/algorithms/similarity.py

Co-authored-by: Dan Schult <[email protected]>

* Update docstring formatting.

---------

Co-authored-by: Dan Schult <[email protected]>
Co-authored-by: Ross Barnowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Missing documentation for output of optimal_edit_paths function

4 participants