Skip to content

Fixed the citation in dominance.py [Issue #7522] - #7524

Merged
rossbar merged 7 commits into
networkx:mainfrom
muddi900:fix/dominator-citiation
Jul 1, 2024
Merged

rossbar merged 7 commits into
networkx:mainfrom
muddi900:fix/dominator-citiation

Conversation

@muddi900

Copy link
Copy Markdown
Contributor

Fixes #7522

Comment thread networkx/algorithms/dominance.py Resolved
@muddi900

Copy link
Copy Markdown
Contributor Author

I have committed the requested changes.

@Peiffap Peiffap 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.

Let's go with Dan's recommendation instead - and apply it to both.

Comment thread networkx/algorithms/dominance.py Resolved
Comment thread networkx/algorithms/dominance.py Resolved
Update networkx/algorithms/dominance.py

Co-authored-by: Gilles Peiffer <[email protected]>

Better indents

Co-authored-by: Gilles Peiffer <[email protected]>

Better indents on the second citation

Co-authored-by: Gilles Peiffer <[email protected]>
@muddi900
muddi900 force-pushed the fix/dominator-citiation branch from 5fe53e7 to 9c7588f Compare June 27, 2024 12:26
@muddi900

Copy link
Copy Markdown
Contributor Author

I have applied the changes and flattened the branch

@Schefflera-Arboricola Schefflera-Arboricola 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 @muddi900 !

Pls consider fixing this citation in the comments of test_dominance.py file.

And next time remember to run pre-commit after you do git add .

@Schefflera-Arboricola Schefflera-Arboricola changed the title Fixed the citiation in dominance [Issue #7522] Fixed the citation in dominance.py [Issue #7522] Jun 27, 2024
@Peiffap

Peiffap commented Jun 27, 2024

Copy link
Copy Markdown
Member

To add on to that, you can run pre-commit install which will automatically run the relevant pre-commit hooks whenever you try to git commit.

@Peiffap

Peiffap commented Jun 27, 2024 •

Copy link
Copy Markdown
Member

Could you apply the same indent rules for the citations in the test files? Thanks.

@Peiffap

Peiffap commented Jun 27, 2024 •

Copy link
Copy Markdown
Member

The test file references still have one space too many.

@muddi900

Copy link
Copy Markdown
Contributor Author

I have fixed the other citation as well. Would you like me to flatten the commits?

@Peiffap Peiffap 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.

There are still two references that need to be changed in the test file.

I don't think you need to squash the commits yourself; it gets done when merging anyways.

# A simple, fast dominance algorithm.
# Software Practice & Experience, 4:110, 2001.
"""
.. [1] Cooper, Keith D., Harvey, Timothy J. and Kennedy, Ken.

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.

This one.

# A simple, fast dominance algorithm.
# Software Practice & Experience, 4:110, 2001.
"""
.. [1] Cooper, Keith D., Harvey, Timothy J. and Kennedy, Ken.

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.

And this one.

@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.

Thanks @muddi900 and @Peiffap & @Schefflera-Arboricola for reviewing!

@rossbar
rossbar merged commit cde19f9 into networkx:main Jul 1, 2024
@jarrodmillman jarrodmillman added this to the 3.4 milestone Jul 1, 2024
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.

wrong citation for dominance algorithms

6 participants