I have a set of nodes and set of directed edges between them. The edges have no weight.
How can I found minimal number of edges which has to be added to make the graph strongly connected (ie. there should be a path from every node to all others)? Does this problem have a name?
(d) What is the minimum number of edges you must add to this graph to make it strongly connected? Ans: Two directed edges (one directed from E to B, and the other from C to E), when added, will make the graph G with no source or sink node.
Explanation: Adding a directed edge joining the pair of vertices {3, 1} makes the graph strongly connected. Hence, the minimum number of edges required is 1.
1) If the new edge connects two vertices that belong to a strongly connected component, the number of strongly connected components will remain the same.
The minimum number of edges for undirected connected graph is (n-1) edges. To see this, since the graph is connected then there must be a unique path from every vertex to every other vertex and removing any edge will make the graph disconnected.
It's a really classical graph problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With