Abstract
In this paper, we investigate some basic problems related to the strong connectivity and to the $2$-connectivity of a directed graph, by considering the effect of edge and vertex deletions on its strongly connected components. Let $G$ be a directed graph with $m$ edges and $n$ vertices. We present a collection of $O(n)$-space data structures that, after $O(m+n)$-time preprocessing can accomplish the following tasks: $(i)$ Report in $O(n)$ worst-case time all the strongly connected components obtained after deleting a single edge (resp., a single vertex) in $G$. $(ii)$ Compute the total number of strongly connected components obtained after deleting a single edge (resp., vertex) in total worst-case $O(n)$ time for all edges (resp., for all vertices). $(iii)$ Compute the size of the largest and of the smallest strongly connected components obtained after deleting a single edge (resp., vertex) in total worst-case $O(n)$ time for all edges (resp., for all vertices). All our bounds are tight. After the same $O(m+n)$-time preprocessing, we can also build an $O(n)$-space data structure that can answer in asymptotically optimal time the following basic $2$-edge and $2$-vertex connectivity queries on directed graphs: $(i)$ Test whether an edge or a vertex separates two query vertices in $O(1)$ worst-case time. $(ii)$ Report all edges or all vertices that separate two query vertices in optimal worst-case time. If there are $k>0$ separating edges (resp., separating vertices), then the time is $O(k)$ in the worst case. If there are no separating edges (resp., separating vertices), then the time is $O(1)$ in the worst case.

This publication has 19 references indexed in Scilit: