retagged by
278 views

1 Answer

0 votes
0 votes
Shortest path dont contain any "positive weight cycles". Let us see this with the help of an example

suppose the cost of A to B is 2;B to C is 5;and A to Cis:3; and this is the subgraph of a graph for which we have to calculate the shortest path. Now this cycle cant exist in the graph as we cant have all these 3 edges (u can check this by applying any shortest path algo).

Related questions

0 votes
0 votes
0 answers
1
Vaishnavi01 asked Nov 19, 2018
306 views
1 votes
1 votes
0 answers
2
Rishav Kumar Singh asked Jul 30, 2018
776 views
TRUE / FALSE Explain Please..An undirected graph is said to be Hamiltonian if it has a cycle containing all the vertices. Any DFS tree on a Hamiltonian graph must have de...
1 votes
1 votes
3 answers
4