Comments (9)
What is the start and end vertex of your graph?
from dijkstra.
Has some edge with a negative value?
from dijkstra.
some edge without a negative value.
when exemplo.py is graph = Graph(example, 3, 19) .it has troulbe
but when it is graph = Graph(example, 3, 129).it gets result
Thank you
from dijkstra.
Do you need to visit all vertex?
from dijkstra.
In Graph(example, 3, 129) the shortest path is [3, 2, 61, 140, 129] but in the Graph(example, 3, 19) the shortest path is [3, 2, 61, 140, 129, 136, 135, 128, 139, 138, 127, 134, 54, 53, 52, 51, 152, 155, 156, 60, 1, 0, 33, 26, 25, 24, 57, 58, 160, 154, 153, 115, 15, 9, 8, 14, 95, 38, 114, 113, 112, 10, 11, 12, 13, 7, 37, 73, 91, 92, 36, 35, 104, 105, 106, 107, 18, 76, 75, 74] with error in 74 vertex.
The problem is the vertex weights. Always that you cross the vertex 74, the system don't know where it should go because all neighbors were already visited. Exemple Vertex 74 neighbors 105, 75, 12 and 37
from dijkstra.
Check the images
https://github.com/GabrielRocha/Dijkstra/tree/master/Images
from dijkstra.
Thank everyone,l have solved the problem but l used matlab.but i thank you for your care
from dijkstra.
So, what was the solution?
from dijkstra.
please see this code in the matlab. https://github.com/jl-wunder/--
from dijkstra.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dijkstra.