8000 Rewrite article on Strongly Connected Components, and add graph pictures by el-sambal · Pull Request #1307 · cp-algorithms/cp-algorithms · GitHub
[go: up one dir, main page]

Skip to content

Rewrite article on Strongly Connected Components, and add graph pictures #1307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Jul 16, 2024

Conversation

el-sambal
Copy link
Contributor

This pull request contains a rewrite of the article Strongly Connected Components and Condensation Graph.

What changed:

  • The article now has two tikzpictures (emdedded as svg images) to give a visual representation of strongly connected components and the condensation graph. The LaTeX source is included.
  • Improved English grammar and general text flow throughout the article.
  • Changed the font from e.g. $order$ to order where appropriate. Similarly, changed $tout[v]$ and $tin[v]$ to $t_\text{out}[v]$ and $t_\text{in}[v]$.
  • Merged the two Implementation code blocks into one block. (The second block contained code that should have been in the main function in the first block. Therefore I thought it is cleaner to just put it in a single block.)
  • Added comments to the code.
  • Fixed some other small things:
    • The article mentioned the graphs $g$ and $gr$ even though these were never used.
    • The article did not give a clear definition of $t_\text{out}[v]$ and $t_\text{in}[v]$.
    • The article said that sorting all vertices in $G$ by exit time is equivalent to topologically sorting the vertices of $G$. (This is wrong, because $G$ is not necessarily a DAG.)

For the added tikzpictures, the source code and svg files themselves are in a new directory src/graph/strongly-connected-components-tikzpicture.

Let me know what you think!

Copy link
Contributor

Visit the preview URL for this PR (for commit 57a5017):

https://cp-algorithms--preview-1307-doz6kdtp.web.app

(expires 2024-07-18T14:32:14.340265812Z)

Copy link
Member
@adamant-pwn adamant-pwn left a comment

Choose a reason for hiding this comment

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

Hi, thank you very much, I think it's a significant improvement! Could you please go over review comments before we merge this?

@el-sambal
Copy link
Contributor Author

Thanks for your suggestions!

Copy link
Contributor

Visit the preview URL for this PR (for commit 9054c35):

https://cp-algorithms--preview-1307-doz6kdtp.web.app

(expires 2024-07-23T00:49:57.826813480Z)

Copy link
Contributor

Visit the preview URL for this PR (for commit d45b892):

https://cp-algorithms--preview-1307-doz6kdtp.web.app

(expires 2024-07-23T01:09:10.072101203Z)

Copy link
Contributor

Visit the preview URL for this PR (for commit < 579F a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/cp-algorithms/cp-algorithms/commit/15b6f5b2090d1c29d223a827cd74a8a46d3082f7/hovercard" href="https://github.com/cp-algorithms/cp-algorithms/commit/15b6f5b2090d1c29d223a827cd74a8a46d3082f7">15b6f5b):

https://cp-algorithms--preview-1307-doz6kdtp.web.app

(expires 2024-07-23T01:10:37.607076414Z)

Copy link
Member
@adamant-pwn adamant-pwn left a comment

Choose a reason for hiding this comment

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

Thanks!

@adamant-pwn adamant-pwn merged commit edea689 into cp-algorithms:master Jul 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0