You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let the edge (a, b) be the edge with the minimum weight over all other edges in the graph G.
The shortest path from source vertex a to destination vertex b must definitely pass through
this edge (a, b). Note: There may be other possible paths from vertex a to vertex b in G.
True. If there is a shorter path, there is at least one more shorter edge. Contrafiction.
But if a - b is -2, and a-c, c-d, d-e, e-b are all -1, then the long bridge would give a distance of -3
I think it's true for positive weights though
Suppose that a Directed Acyclic Graph (DAG) G has X different topological orders. If we delete
a single edge of G, the resulting graph G’ will definitely has > X different topological orders.
False. If anything, it will have LESS number of toposorts.
If the graph is just a->b. the topo sort is a,b. But if you delete the only edge, the topo sort becomes a,b or b,a
The text was updated successfully, but these errors were encountered:
Let the edge (a, b) be the edge with the minimum weight over all other edges in the graph G.
The shortest path from source vertex a to destination vertex b must definitely pass through
this edge (a, b). Note: There may be other possible paths from vertex a to vertex b in G.
But if a - b is -2, and a-c, c-d, d-e, e-b are all -1, then the long bridge would give a distance of -3
I think it's true for positive weights though
Suppose that a Directed Acyclic Graph (DAG) G has X different topological orders. If we delete
a single edge of G, the resulting graph G’ will definitely has > X different topological orders.
False. If anything, it will have LESS number of toposorts.
If the graph is just a->b. the topo sort is a,b. But if you delete the only edge, the topo sort becomes a,b or b,a
The text was updated successfully, but these errors were encountered: