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

All Shortest Paths using Floyd warshall's algorithm #71

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Emmanuel-PLF
Copy link

Floyd's algorithm can be interesting when graph density is high (more edges than vertex).

@UnixJunkie
Copy link

how does this compares to this:
#63

@UnixJunkie
Copy link

I might give a try at this implementation and report about it.

@UnixJunkie
Copy link

Is there something needed so that this PR could be accepted?

@UnixJunkie
Copy link

Is it normal to get NegativeCycle when my graph has only edges of length 1?
adding 0 1
adding 0 5
adding 1 2
adding 2 3
adding 3 4
adding 4 5
Fatal error: exception Graph.Path.FloydWarshall(G)(W).NegativeCycle
@Emmanuel-PLF

@UnixJunkie
Copy link

My graph is undirected, has 6 nodes connected in a ring.

@UnixJunkie
Copy link

Also, there is already the Johnson algorithm in ocamlgraph.

@UnixJunkie
Copy link

@slindley

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