Skip to content

strong product docs update - #7511

Merged
rossbar merged 4 commits into
networkx:mainfrom
sanchitram1:docs-for-strong-product-7510
Jun 24, 2024
Merged

rossbar merged 4 commits into
networkx:mainfrom
sanchitram1:docs-for-strong-product-7510

Conversation

@sanchitram1

@sanchitram1 sanchitram1 commented Jun 21, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #7510

I added the adjacency description as well, since that's how I remember learning it in school

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

Comment on lines +301 to +304
In other words, two nodes $(u, x)$ and $(v, y)$ are adjacent in $P$ if:
- $u==v$ and $x$ and $y$ are adjacent in $H$, or
- $x==y$ and $u$ and $v$ are adjacent in $G$, or
- $u$ and $v$ are adjacent in $G$ and $x$ and $y$ are adjacent in $H$.

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.

I understand this explanation is more understandable to you but this might seem redundant to a general user of NetworkX(mostly researchers, students, etc.). I believe most people using this algorithm would know that an edge between 2 nodes means that they are adjacent to each other. So, you can either use the word "edge" or "adjacent"(like in Wikipedia), but using both seems redundant to me. Let me know what you think :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no, I think it's fair. I believe the edge description is more compelling, adjacency is for math nerds only ;)

how did you generate the output.circle-artifacts URL? I'd like to validate how it would render on the documentation page

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.

@sanchitram1 The documentation get automatically generated by a GitHub workflow. If you want to build docs locally (which is recommended when updating them), you can follow the contributing guide.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks for that! I think the rendering is fine with my latest commit

Screenshot 2024-06-21 at 10 27 07 AM

@sanchitram1
sanchitram1 requested a review from Peiffap June 21, 2024 15:53

@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 @sanchitram1 and @Peiffap !

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

Looks good to me. Thanks!

@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 know that this nit-pick is in the current code too, but since we're here, maybe we can clean it up too:

Using LaTeX inside the doc_strings is allowed, but really should be used for math and not for Python. Could you make the == sign into =?

:)

@sanchitram1
sanchitram1 requested a review from dschult June 22, 2024 03:22
@sanchitram1

Copy link
Copy Markdown
Contributor Author

@dschult done, lmk if anything else would be helpful

@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 all for the fix + reviews!

@rossbar
rossbar merged commit cb26174 into networkx:main Jun 24, 2024
@jarrodmillman jarrodmillman added this to the 3.4 milestone Jun 24, 2024
@sanchitram1
sanchitram1 deleted the docs-for-strong-product-7510 branch June 24, 2024 23:58
@sanchitram1
sanchitram1 restored the docs-for-strong-product-7510 branch June 24, 2024 23:58
Peiffap pushed a commit to Peiffap/networkx that referenced this pull request Jun 26, 2024
* strong product docs update

* remove adjacency desc, and `or`s

* `==` to `=`
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.

Fix the docs of strong_product

6 participants