Repository navigation
strong product docs update - #7511
Conversation
There was a problem hiding this comment.
Thanks @sanchitram1 !
I've left a comment below. LMK what u think!
PS: Please format the 3 pointers(conditions) correctly. (ref. https://output.circle-artifacts.com/output/job/55e6a18e-3658-484d-97b4-751bd42e2dc2/artifacts/0/doc/build/html/reference/algorithms/generated/networkx.algorithms.operators.product.strong_product.html#strong-product)
| 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$. |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
@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.
Schefflera-Arboricola
left a comment
There was a problem hiding this comment.
Thanks @sanchitram1 and @Peiffap !
dschult
left a comment
There was a problem hiding this comment.
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 =?
:)
|
@dschult done, lmk if anything else would be helpful |
rossbar
left a comment
There was a problem hiding this comment.
Thanks all for the fix + reviews!
* strong product docs update * remove adjacency desc, and `or`s * `==` to `=`

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