Recent from talks
Nothing was collected or created yet.
Connectivity (graph theory)
View on Wikipedia

In mathematics and computer science, connectivity is one of the basic concepts of graph theory: it asks for the minimum number of elements (nodes or edges) that need to be removed to separate the remaining nodes into two or more isolated subgraphs.[1] It is closely related to the theory of network flow problems. The connectivity of a graph is an important measure of its resilience as a network.
Connected vertices and graphs
[edit]
In an undirected graph G, two vertices u and v are called connected if G contains a path from u to v. Otherwise, they are called disconnected. If the two vertices are additionally connected by a path of length 1 (that is, they are the endpoints of a single edge), the vertices are called adjacent.
A graph is said to be connected if every pair of vertices in the graph is connected. This means that there is a path between every pair of vertices. An undirected graph that is not connected is called disconnected. An undirected graph G is therefore disconnected if there exist two vertices in G such that no path in G has these vertices as endpoints. A graph with just one vertex is connected. An edgeless graph with two or more vertices is disconnected.
A directed graph is called weakly connected if replacing all of its directed edges with undirected edges produces a connected (undirected) graph. It is unilaterally connected or unilateral (also called semiconnected) if it contains a directed path from u to v or a directed path from v to u for every pair of vertices u, v.[2] It is strongly connected, or simply strong, if it contains a directed path from u to v and a directed path from v to u for every pair of vertices u, v.
Components and cuts
[edit]A connected component is a maximal connected subgraph of an undirected graph. Each vertex belongs to exactly one connected component, as does each edge. A graph is connected if and only if it has exactly one connected component.
The strong components are the maximal strongly connected subgraphs of a directed graph.
A vertex cut or separating set of a connected graph G is a set of vertices whose removal renders G disconnected. The vertex connectivity κ(G) (where G is not a complete graph) is the size of a smallest vertex cut. A graph is called k-vertex-connected or k-connected if its vertex connectivity is k or greater.
More precisely, any graph G (complete or not) is said to be k-vertex-connected if it contains at least k + 1 vertices, but does not contain a set of k − 1 vertices whose removal disconnects the graph; and κ(G) is defined as the largest k such that G is k-connected. In particular, a complete graph with n vertices, denoted Kn, has no vertex cuts at all, but κ(Kn) = n − 1.
A vertex cut for two vertices u and v is a set of vertices whose removal from the graph disconnects u and v. The local connectivity κ(u, v) is the size of a smallest vertex cut separating u and v. Local connectivity is symmetric for undirected graphs; that is, κ(u, v) = κ(v, u). Moreover, except for complete graphs, κ(G) equals the minimum of κ(u, v) over all nonadjacent pairs of vertices u, v.
2-connectivity is also called biconnectivity and 3-connectivity is also called triconnectivity. A graph G which is connected but not 2-connected is sometimes called separable.
Analogous concepts can be defined for edges. In the simple case in which cutting a single, specific edge would disconnect the graph, that edge is called a bridge. More generally, an edge cut of G is a set of edges whose removal renders the graph disconnected. The edge-connectivity λ(G) is the size of a smallest edge cut, and the local edge-connectivity λ(u, v) of two vertices u, v is the size of a smallest edge cut disconnecting u from v. Again, local edge-connectivity is symmetric. A graph is called k-edge-connected if its edge connectivity is k or greater.
A graph is said to be maximally connected if its connectivity equals its minimum degree. A graph is said to be maximally edge-connected if its edge-connectivity equals its minimum degree.[3]
Super- and hyper-connectivity
[edit]A graph is said to be super-connected or super-κ if every minimum vertex cut isolates a vertex. A graph is said to be hyper-connected or hyper-κ if the deletion of each minimum vertex cut creates exactly two components, one of which is an isolated vertex. A graph is semi-hyper-connected or semi-hyper-κ if any minimum vertex cut separates the graph into exactly two components.[4]
More precisely: a G connected graph is said to be super-connected or super-κ if all minimum vertex-cuts consist of the vertices adjacent with one (minimum-degree) vertex. A G connected graph is said to be super-edge-connected or super-λ if all minimum edge-cuts consist of the edges incident on some (minimum-degree) vertex.[5]
A cutset X of G is called a non-trivial cutset if X does not contain the neighborhood N(u) of any vertex u ∉ X. Then the superconnectivity of G is
A non-trivial edge-cut and the edge-superconnectivity are defined analogously.[6]
Menger's theorem
[edit]One of the most important facts about connectivity in graphs is Menger's theorem, which characterizes the connectivity and edge-connectivity of a graph in terms of the number of independent paths between vertices.
If u and v are vertices of a graph G, then a collection of paths between u and v is called independent if no two of them share a vertex (other than u and v themselves). Similarly, the collection is edge-independent if no two paths in it share an edge. The number of mutually independent paths between u and v is written as κ′(u, v), and the number of mutually edge-independent paths between u and v is written as λ′(u, v).
Menger's theorem asserts that for distinct vertices u,v, λ(u, v) equals λ′(u, v), and if u is also not adjacent to v then κ(u, v) equals κ′(u, v).[7][8] This fact is actually a special case of the max-flow min-cut theorem.
Computational aspects
[edit]The problem of determining whether two vertices in a graph are connected can be solved efficiently using a search algorithm, such as breadth-first search. More generally, it is easy to determine computationally whether a graph is connected (for example, by using a disjoint-set data structure), or to count the number of connected components. A simple algorithm might be written in pseudo-code as follows:
- Begin at any arbitrary node of the graph G.
- Proceed from that node using either depth-first or breadth-first search, counting all nodes reached.
- Once the graph has been entirely traversed, if the number of nodes counted is equal to the number of nodes of G, the graph is connected; otherwise it is disconnected.
By Menger's theorem, for any two vertices u and v in a connected graph G, the numbers κ(u, v) and λ(u, v) can be determined efficiently using the max-flow min-cut algorithm. The connectivity and edge-connectivity of G can then be computed as the minimum values of κ(u, v) and λ(u, v), respectively.
In computational complexity theory, SL is the class of problems log-space reducible to the problem of determining whether two vertices in a graph are connected, which was proved to be equal to L by Omer Reingold in 2004.[9] Hence, undirected graph connectivity may be solved in O(log n) space.
The problem of computing the probability that a Bernoulli random graph is connected is called network reliability and the problem of computing whether two given vertices are connected the ST-reliability problem. Both of these are #P-hard.[10]
Number of connected graphs
[edit]The number of distinct connected labeled graphs with n nodes is tabulated in the On-Line Encyclopedia of Integer Sequences as sequence A001187. The first few non-trivial terms are

| n | graphs |
|---|---|
| 1 | 1 |
| 2 | 1 |
| 3 | 4 |
| 4 | 38 |
| 5 | 728 |
| 6 | 26704 |
| 7 | 1866256 |
| 8 | 251548592 |
Examples
[edit]- The vertex- and edge-connectivities of a disconnected graph are both 0.
- 1-connectedness is equivalent to connectedness for graphs of at least two vertices.
- The complete graph on n vertices has edge-connectivity equal to n − 1. Every other simple graph on n vertices has strictly smaller edge-connectivity.
- In a tree, the local edge-connectivity between any two distinct vertices is 1.
Bounds on connectivity
[edit]- The vertex-connectivity of a graph is less than or equal to its edge-connectivity. That is, κ(G) ≤ λ(G).
- The edge-connectivity for a graph with at least 2 vertices is less than or equal to the minimum degree of the graph because removing all the edges that are incident to a vertex of minimum degree will disconnect that vertex from the rest of the graph.[1]
- For a vertex-transitive graph of degree d, we have: 2(d + 1)/3 ≤ κ(G) ≤ λ(G) = d.[11]
- For a vertex-transitive graph of degree d ≤ 4, or for any (undirected) minimal Cayley graph of degree d, or for any symmetric graph of degree d, both kinds of connectivity are equal: κ(G) = λ(G) = d.[12]
Other properties
[edit]- Connectedness is preserved by graph homomorphisms.
- If G is connected then its line graph L(G) is also connected.
- A graph G is 2-edge-connected if and only if it has an orientation that is strongly connected.
- Balinski's theorem states that the polytopal graph (1-skeleton) of a k-dimensional convex polytope is a k-vertex-connected graph.[13] Steinitz's previous theorem that any 3-vertex-connected planar graph is a polytopal graph (Steinitz's theorem) gives a partial converse.
- According to a theorem of G. A. Dirac, if a graph is k-connected for k ≥ 2, then for every set of k vertices in the graph there is a cycle that passes through all the vertices in the set.[14][15] The converse is true when k = 2.
See also
[edit]References
[edit]- ^ a b Diestel, R. (2005). "Graph Theory, Electronic Edition". p. 12.
- ^ Chapter 11: Digraphs: Principle of duality for digraphs: Definition
- ^ Gross, Jonathan L.; Yellen, Jay (2004). Handbook of graph theory. CRC Press. p. 335. ISBN 978-1-58488-090-5.
- ^ Liu, Qinghai; Zhang, Zhao (2010-03-01). "The existence and upper bound for two types of restricted connectivity". Discrete Applied Mathematics. 158 (5): 516–521. doi:10.1016/j.dam.2009.10.017.
- ^ Gross, Jonathan L.; Yellen, Jay (2004). Handbook of graph theory. CRC Press. p. 338. ISBN 978-1-58488-090-5.
- ^ Balbuena, Camino; Carmona, Angeles (2001-10-01). "On the connectivity and superconnectivity of bipartite digraphs and graphs". Ars Combinatorica. 61: 3–22. CiteSeerX 10.1.1.101.1458.
- ^ Gibbons, A. (1985). Algorithmic Graph Theory. Cambridge University Press.
- ^ Nagamochi, H.; Ibaraki, T. (2008). Algorithmic Aspects of Graph Connectivity. Cambridge University Press.
- ^ Reingold, Omer (2008). "Undirected connectivity in log-space". Journal of the ACM. 55 (4): 1–24. doi:10.1145/1391289.1391291. S2CID 207168478.
- ^ Provan, J. Scott; Ball, Michael O. (1983). "The complexity of counting cuts and of computing the probability that a graph is connected". SIAM Journal on Computing. 12 (4): 777–788. doi:10.1137/0212053. MR 0721012..
- ^ Godsil, C.; Royle, G. (2001). Algebraic Graph Theory. Springer Verlag.
- ^ Babai, L. (1996). Automorphism groups, isomorphism, reconstruction. Technical Report TR-94-10. University of Chicago. Archived from the original on 2010-06-11. Chapter 27 of The Handbook of Combinatorics.
- ^ Balinski, M. L. (1961). "On the graph structure of convex polyhedra in n-space". Pacific Journal of Mathematics. 11 (2): 431–434. doi:10.2140/pjm.1961.11.431.
- ^ Dirac, Gabriel Andrew (1960). "In abstrakten Graphen vorhandene vollständige 4-Graphen und ihre Unterteilungen". Mathematische Nachrichten. 22 (1–2): 61–85. doi:10.1002/mana.19600220107. MR 0121311..
- ^ Flandrin, Evelyne; Li, Hao; Marczyk, Antoni; Woźniak, Mariusz (2007). "A generalization of Dirac's theorem on cycles through k vertices in k-connected graphs". Discrete Mathematics. 307 (7–8): 878–884. doi:10.1016/j.disc.2005.11.052. MR 2297171..
Connectivity (graph theory)
View on GrokipediaBasic Concepts
Connected Graphs
In graph theory, two vertices in an undirected graph are connected if there exists a path between them, where a path is a sequence of distinct vertices linked by edges.[4] A graph is connected if every pair of its vertices is connected by such a path; otherwise, it is disconnected.[5] The trivial graph consisting of a single vertex is considered connected by convention, as there are no pairs of distinct vertices to connect.[6] The null graph, consisting of no vertices (and no edges), is generally not considered connected, as connectivity is typically defined for non-empty graphs.[7] For example, the path graph , which consists of vertices connected in a linear sequence by edges, is connected for any .[8] A simple disconnected graph might consist of two isolated vertices with no edges between them, where no path exists linking the pair. The term "connected" in this context was formalized in early 20th-century graph theory.[9] In directed graphs, connectivity variants account for edge orientations. A directed graph is weakly connected if its underlying undirected graph—obtained by ignoring directions—is connected.[6] It is unilaterally connected if, for every pair of distinct vertices, there is a directed path from one to the other in at least one direction. Strongest is strong connectivity, where there exists a directed path between every pair of vertices in both directions.[10]Connected Components
In graph theory, a connected component of a graph is a maximal connected subgraph, meaning it is connected and no additional vertices or edges from can be added while preserving connectivity.[11] This subgraph induces a partition of the vertex set , where each component consists of all vertices reachable from one another via paths in .[12] Isolated vertices, which have no incident edges, each form a singleton connected component.[11] The relation of being in the same connected component defines an equivalence relation on the vertices of : it is reflexive (every vertex reaches itself via a trivial path), symmetric (paths are bidirectional in undirected graphs), and transitive (concatenating paths preserves reachability).[12] The equivalence classes under this relation precisely correspond to the connected components, partitioning into disjoint sets where intra-component connectivity holds but inter-component paths do not.[13] The number of such components is denoted by , and is connected if and only if .[12] Connected components in undirected graphs can be identified algorithmically using depth-first search (DFS) or breadth-first search (BFS), starting from each unvisited vertex and marking all reachable vertices as part of the current component; this process repeats until all vertices are visited, yielding all components in linear time relative to the number of vertices and edges.[14] For directed graphs, connectivity notions extend to weakly connected components and strongly connected components. A weakly connected component is a maximal subdigraph where, ignoring edge directions, every pair of distinct vertices is connected by an undirected path; these are essentially the connected components of the underlying undirected graph.[15] In contrast, a strongly connected component is a maximal subdigraph where, for every pair of distinct vertices and , there is a directed path from to and from to .[16] These strong components partition the vertices, with the condensation graph (where each strong component is contracted to a single vertex) forming a directed acyclic graph.[16]Measures of Connectivity
Vertex Connectivity
In graph theory, the vertex connectivity of a graph , denoted , is defined as the size of the smallest vertex cut, where a vertex cut is a set of vertices whose removal from either disconnects the graph or reduces it to a single vertex (assuming ).[2] This measure quantifies the robustness of against vertex failures, as removing fewer than vertices leaves connected. If is disconnected, then .[1] For the complete graph with vertices, , since the removal of vertices isolates the remaining one.[1] The local vertex connectivity between two distinct vertices and in , denoted , is the size of the smallest set of vertices whose removal separates from (i.e., no path remains between them).[2] For non-adjacent and , equals the maximum number of internally vertex-disjoint paths from to . In a non-complete connected graph , the vertex connectivity is given by .[2] A connected graph has if and only if it contains an articulation point (also called a cut vertex), whose removal increases the number of connected components.[1] It holds that , where is the minimum degree of , because the neighbors of a minimum-degree vertex form a vertex cut separating that vertex from the rest of the graph.[2] Additionally, Whitney's inequality states that , where is the edge connectivity of , highlighting vertex connectivity as a stricter bound compared to its edge-based counterpart.[2]Edge Connectivity
In graph theory, the edge connectivity of a connected graph , denoted , is defined as the minimum number of edges whose removal disconnects .[17] This measure quantifies the graph's resilience to edge failures, with for any disconnected graph.[17] The local edge connectivity between two distinct vertices and in , denoted , is the size of the smallest set of edges whose removal separates from , or equivalently, the maximum number of edge-disjoint paths from to .[17] The global edge connectivity satisfies .[17] Special cases highlight key structural properties: if contains a bridge, an edge whose removal disconnects the graph; for the complete graph with , .[17] Bridges are precisely the edges that do not lie on any cycle in , as their removal breaks the unique path between the components they connect.[18] A fundamental bound relates edge connectivity to the minimum degree : , since removing all edges incident to a minimum-degree vertex disconnects it from the rest of the graph.[17] Whitney's inequality strengthens this by positioning edge connectivity between vertex connectivity and minimum degree: for any graph with at least two vertices.[2]Key Theorems and Characterizations
Menger's Theorem
Menger's theorem provides a fundamental characterization of connectivity in graphs by relating the minimum size of separators to the maximum number of disjoint paths between vertices. In its vertex version, for non-adjacent vertices and in an undirected graph , the minimum number of vertices whose removal disconnects from —known as the size of a minimum - vertex separator—equals the maximum number of internally vertex-disjoint - paths in .[19] This equivalence, denoted as , where is the separator size and is the path number, captures the local vertex connectivity between specific pairs. The edge version of the theorem states that, for any two vertices and in , the minimum number of edges whose removal disconnects from —the size of a minimum - edge separator—equals the maximum number of edge-disjoint - paths in .[19] Denoted , where is the edge separator size and is the edge-disjoint path number, this version directly parallels the vertex case but focuses on edges rather than internal vertices. These local characterizations extend to global connectivity measures: for a connected graph , the vertex connectivity equals the minimum of over all non-adjacent pairs , implying is -connected if and only if every pair of vertices admits internally disjoint paths.[19] Similarly, the edge connectivity is the minimum of over all pairs , so is -edge-connected if and only if every pair admits edge-disjoint paths.[19] Proved by Karl Menger in 1927, the theorem laid foundational groundwork for later developments in network flow theory, where the weighted max-flow min-cut theorem generalizes it.[20] Proofs typically proceed by induction on the number of vertices or via the construction of augmenting paths that alternately use existing paths and separators to build disjoint ones until no further augmentation is possible.[19] The theorem extends naturally to directed graphs, where the vertex (or edge) version equates the minimum size of a separator to the maximum number of internally vertex-disjoint (or edge-disjoint) directed paths from a source set to a sink set, preserving the core duality.[19]Bounds on Connectivity
Whitney's inequality provides fundamental upper bounds on the connectivity parameters of a simple graph . Specifically, the vertex connectivity satisfies , where denotes the edge connectivity and the minimum degree.[2] The second part, , follows from the observation that removing all edges incident to a vertex of minimum degree disconnects that vertex from the rest of the graph, yielding an edge cut of size at most . The first part, , arises from the fact that any minimum vertex cut corresponds to a vertex cut whose removal induces an edge cut of no greater size, leveraging minimality arguments from path decompositions.[2] An immediate upper bound on vertex connectivity is , where , with equality holding if and only if is the complete graph . This follows directly from the definition, as removing vertices leaves a single isolated vertex, disconnecting the graph, and in , fewer than vertices cannot separate any pair. For vertex-transitive graphs, which are necessarily regular of degree , tighter bounds apply: . The upper bound is trivial from Whitney's inequality, while the lower bound uses symmetry and expansion properties to ensure sufficiently many vertex-disjoint paths between any pair, preventing small cuts. Mader's theorem states that every graph with average degree at least contains a subgraph of vertex connectivity at least (for example, for , average degree at least 8 guarantees a 2-connected subgraph). Proofs rely on iteratively contracting high-degree components and applying Dirac-type degree conditions to build connected structures without small cuts.[21] In random graphs, asymptotic bounds reveal sharp thresholds for connectivity. For the Erdős–Rényi model , the probability that the graph is connected transitions from near 0 to near 1 around ; more precisely, if for constant , then as . Above this threshold, the minimum degree is at least 1 with high probability, implying , and higher connectivity follows from the resulting high minimum degree. These thresholds are derived using the expected number of isolated vertices and union bounds on small components.[22]Advanced Connectivity Notions
k-Connected Graphs
A graph is said to be -vertex-connected if it has more than vertices and remains connected whenever fewer than vertices are removed.[23] Similarly, is -edge-connected if it remains connected after the removal of fewer than edges.[24] The vertex connectivity is the largest integer such that is -vertex-connected, and likewise for edge connectivity .[23] For , a graph is 1-vertex-connected if and only if it is connected.[24] For , a 2-vertex-connected graph is termed biconnected and contains no articulation points (also called cut vertices), which are vertices whose removal increases the number of connected components.[25] A 2-edge-connected graph has no bridges, which are edges whose removal disconnects the graph.[24] Articulation points can be detected efficiently using a depth-first search (DFS) traversal that tracks discovery times and low values for each vertex, as developed in the seminal algorithm by Hopcroft and Tarjan. This method identifies articulation points in linear time relative to the number of vertices and edges by checking conditions such as a vertex having multiple children in the DFS tree or a non-root vertex with no back edge to an ancestor. The biconnected components of a graph, also known as blocks, are the maximal subgraphs that are 2-vertex-connected. These components can be found using the same DFS-based approach, where edges are stacked during traversal and popped to form components upon encountering articulation points or completing subtrees. Biconnected components partition the edges of the graph, sharing only articulation points between them, and provide a block-cut tree structure that captures the overall connectivity.[26] One canonical construction of minimal -connected graphs on vertices is the Harary graph , which achieves the smallest possible number of edges while ensuring -connectivity.[27] For even , the graph is formed by arranging vertices in a cycle and connecting each vertex to its nearest neighbors in both clockwise and counterclockwise directions.[28] For odd , each vertex connects to its nearest neighbors in each direction, plus a connection to the diametrically opposite vertex (adjusted for even or odd ).[28] These graphs are -regular when possible and serve as extremal examples for connectivity bounds.[27] Sufficient conditions for -connectivity often involve degree constraints.Super- and Hyper-Connectivity
In graph theory, super- and hyper-connectivity extend the notion of k-connectivity by imposing structural conditions on the minimum cuts of a graph, ensuring that disconnections occur in a highly specific manner.[29] These concepts are particularly relevant for analyzing fault-tolerant structures where basic connectivity thresholds are insufficient to guarantee desirable separation properties.[30] A graph is super-vertex-connected if every minimum vertex cut isolates a vertex, meaning the removal of such a cut leaves at least one isolated vertex in the remaining graph.[31] A graph is hyper-vertex-connected if every minimum vertex cut creates exactly two components, one of which is an isolated vertex.[29] A related variant is semi-hyper-connected, where every minimum vertex cut separates the graph into exactly two components, without requiring isolation of a single vertex.[32] Note that hyper-vertex-connected graphs are both super-vertex-connected and semi-hyper-connected. For edges, a graph is super-edge-connected if every minimum edge cut consists of all edges incident to a single vertex, effectively isolating that vertex via its full neighborhood edges.[30] The superconnectivity parameter for a connected graph is defined as the size of the smallest non-trivial vertex cut that does not isolate any single vertex, i.e., a cut whose removal disconnects into at least two components each of size at least 2; if no such cut exists, .[30] Graphs exhibiting super- or hyper-vertex-connectivity often imply high regularity, as the vertex connectivity equals the minimum degree , since minimum cuts align precisely with the neighborhoods of minimum-degree vertices.[33] For instance, complete graphs (for ) are super-vertex-connected, with minimum cuts of size isolating any chosen vertex, while cycles (for ) are super-edge-connected, as their minimum edge cuts of size 2 consist of the two incident edges to any vertex.[34] These notions were introduced in the early 1990s to enhance the analysis of fault-tolerant networks, with foundational work by Fiol, Fàbrega, and Escudero establishing the framework for superconnectivity in graphs and digraphs.Computational Aspects
Algorithms for Computing Connectivity
Determining whether an undirected graph is connected can be achieved using depth-first search (DFS) or breadth-first search (BFS), both of which run in time, where is the number of vertices and is the number of edges.[35] These algorithms traverse the graph starting from an arbitrary vertex and check if all vertices are visited, thereby verifying overall connectivity. For the local vertex connectivity between two non-adjacent vertices and , or edge connectivity , the problem reduces to finding the maximum flow in a derived flow network, as justified by Menger's theorem. Specifically, for , construct a network where each vertex is split into an in-vertex and out-vertex connected by a unit-capacity edge, and original edges have infinite capacity; the max-flow value from to equals . For , assign unit capacities to edges directly. The Ford-Fulkerson method or its implementation via Edmonds-Karp using BFS finds this flow in time. Recent almost-linear time maximum flow algorithms, such as those achieving time where , enable faster computations for connectivity in practice.[36] Computing the global vertex connectivity or edge connectivity of a graph requires finding the minimum over all pairs of non-adjacent vertices, which naively involves max-flow computations and thus time overall. More efficient approaches exist for specific cases; for instance, identifying articulation points (vertices whose removal increases the number of connected components) to bound can be done using Tarjan's DFS-based algorithm in time.[35] Specialized algorithms for higher connectivity, such as testing 3-edge-connectivity, achieve near-linear time by performing a single DFS traversal to find cut-pairs.[37] In directed graphs, strong connectivity—where every pair of vertices has paths in both directions—can be tested by finding strongly connected components (SCCs). Kosaraju's algorithm computes all SCCs in time using two DFS passes: one on the original graph to obtain finishing times, and one on the transpose graph in reverse finishing order.[38] Alternatively, Tarjan's single-pass DFS algorithm identifies SCCs in the same linear time by tracking discovery times and low-link values to detect component roots.[35] If the graph has exactly one SCC, it is strongly connected. Regarding computational complexity, the undirected s-t connectivity problem (deciding if there is a path between specified vertices s and t) is solvable in deterministic log-space (L), as shown by Reingold's algorithm that simulates a random walk via a zigzag product on expanders.[39] Consequently, global undirected graph connectivity (testing if the graph is connected) is also in deterministic log-space, by fixing s and checking connectivity to all other vertices.[40] In parallel models, connectivity can be computed efficiently on the PRAM; for example, a randomized EREW PRAM algorithm finds connected components in time using processors via techniques like pointer doubling on a BFS tree.[41] For dynamic graphs supporting edge insertions and deletions with connectivity queries, as of 2025, structures achieve expected polylogarithmic worst-case update time and query time using randomized approaches based on hierarchical core graphs.[42]Enumeration of Connected Graphs
The enumeration of connected graphs is a central problem in graph theory, focusing on counting the distinct simple graphs that satisfy the connectivity condition, where every pair of vertices is linked by a path. This combinatorial task distinguishes between labeled graphs, where vertices are distinguishable, and unlabeled graphs, where only the structure matters up to isomorphism. These counts provide insights into the density of connected structures within the space of all possible graphs and underpin asymptotic analyses and generating function approaches. For labeled connected graphs on vertices, the sequence is given by OEIS A001187, which lists the numbers as 1 for , 1 for , 1 for , 4 for , 38 for , and 728 for .[43] This sequence arises from recursive relations that subtract disconnected graphs from the total labeled graphs. The following table summarizes the initial terms:| Number of connected labeled graphs | |
|---|---|
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
| 4 | 4 |
| 5 | 38 |
| 6 | 728 |