Skip to content
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

Tarjan's strongly connected component algorithm #14

Closed
wants to merge 5 commits into from
Closed

Tarjan's strongly connected component algorithm #14

wants to merge 5 commits into from

Conversation

dav-m85
Copy link

@dav-m85 dav-m85 commented Feb 26, 2015

As requested, reopened graphp/graph#106 here.

Closes #11.

@clue clue changed the title Tarjan's strongly connected component and Shortest Cycle finder algorithm Tarjan's strongly connected component algorithm Mar 4, 2015
use Fhaculty\Graph\Vertex;

/**
* @see http://github.com/Trismegiste/Mondrian/blob/master/Graph/Tarjan.php
Copy link
Member

Choose a reason for hiding this comment

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

Some documentation would be much appreciated :)

@clue
Copy link
Member

clue commented Mar 4, 2015

Thanks for your continuous effort and migrating this over! 👍 This new PR is much easier to review, some of the initial discussion can be found in the original PR linked above.

@clue
Copy link
Member

clue commented Apr 21, 2015

Ping @dav-m85, perhaps you can use some support so that we can get this in? :)

@dav-m85
Copy link
Author

dav-m85 commented Jul 15, 2015

All requested fixes have been done. Sorry for the lag :)

@clue
Copy link
Member

clue commented Oct 12, 2015

Thanks for the update and your patience @dav-m85! :-)

I'll review this shortly.

* @throws InvalidArgumentException For undirected graph argument.
* @return Vertices[] Array of Strongly Connected components.
*/
public function getStronglyConnectedVerticesFromDirectedGraph(Graph $graph)
Copy link
Member

Choose a reason for hiding this comment

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

Naming this method is indeed a tough challenge :-)

Afaict this appears to be the first method so far which returns not only an array of vertex instances, but an array of vertices 😮

Admittedly, I'm not a big fan of the current nor the suggested naming convention. The current suggested name matches this rather elaborate style, how about using something more concise?

Does naming this "TarjansAlgorithm::getConnectedComponents(Graph)" make sense to you?

@clue
Copy link
Member

clue commented Oct 12, 2015

Awesome, functionally the changes LGTM! 👍

Let's address the outstanding naming issues and get this in 👍

@clue clue deleted the branch graphp:master October 30, 2022 13:49
@clue clue closed this Oct 30, 2022
@SimonFrings
Copy link
Contributor

SimonFrings commented Oct 31, 2022

This ticket got automatically closed after renaming the master branch to 0.9.x. We're not sure of the exact reason for this, it seems like it had nothing to do with the fact to merge this PR into the old master branch, other tickets with the same situation were left untouched.

This pull request is open for quite a while now and didn't receive any updates since, this is why I suggest we leave this closed for now. If this topic is still relevant and needs some further investigation, we can always reopen it in the future and take another look 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate "Tarjan's strongly connected component"
3 participants