- Graph Theory - Home
- Graph Theory - Introduction
- Graph Theory - History
- Graph Theory - Fundamentals
- Graph Theory - Applications
- Types of Graphs
- Graph Theory - Types of Graphs
- Graph Theory - Simple Graphs
- Graph Theory - Multi-graphs
- Graph Theory - Directed Graphs
- Graph Theory - Weighted Graphs
- Graph Theory - Bipartite Graphs
- Graph Theory - Complete Graphs
- Graph Theory - Subgraphs
- Graph Theory - Trees
- Graph Theory - Forests
- Graph Theory - Planar Graphs
- Graph Theory - Hypergraphs
- Graph Theory - Infinite Graphs
- Graph Theory - Random Graphs
- Graph Representation
- Graph Theory - Graph Representation
- Graph Theory - Adjacency Matrix
- Graph Theory - Adjacency List
- Graph Theory - Incidence Matrix
- Graph Theory - Edge List
- Graph Theory - Compact Representation
- Graph Theory - Incidence Structure
- Graph Theory - Matrix-Tree Theorem
- Graph Properties
- Graph Theory - Basic Properties
- Graph Theory - Coverings
- Graph Theory - Matchings
- Graph Theory - Independent Sets
- Graph Theory - Traversability
- Graph Theory Connectivity
- Graph Theory - Connectivity
- Graph Theory - Vertex Connectivity
- Graph Theory - Edge Connectivity
- Graph Theory - k-Connected Graphs
- Graph Theory - 2-Vertex-Connected Graphs
- Graph Theory - 2-Edge-Connected Graphs
- Graph Theory - Strongly Connected Graphs
- Graph Theory - Weakly Connected Graphs
- Graph Theory - Connectivity in Planar Graphs
- Graph Theory - Connectivity in Dynamic Graphs
- Special Graphs
- Graph Theory - Regular Graphs
- Graph Theory - Complete Bipartite Graphs
- Graph Theory - Chordal Graphs
- Graph Theory - Line Graphs
- Graph Theory - Complement Graphs
- Graph Theory - Graph Products
- Graph Theory - Petersen Graph
- Graph Theory - Cayley Graphs
- Graph Theory - De Bruijn Graphs
- Graph Algorithms
- Graph Theory - Graph Algorithms
- Graph Theory - Breadth-First Search
- Graph Theory - Depth-First Search (DFS)
- Graph Theory - Dijkstra's Algorithm
- Graph Theory - Bellman-Ford Algorithm
- Graph Theory - Floyd-Warshall Algorithm
- Graph Theory - Johnson's Algorithm
- Graph Theory - A* Search Algorithm
- Graph Theory - Kruskal's Algorithm
- Graph Theory - Prim's Algorithm
- Graph Theory - Borůvka's Algorithm
- Graph Theory - Ford-Fulkerson Algorithm
- Graph Theory - Edmonds-Karp Algorithm
- Graph Theory - Push-Relabel Algorithm
- Graph Theory - Dinic's Algorithm
- Graph Theory - Hopcroft-Karp Algorithm
- Graph Theory - Tarjan's Algorithm
- Graph Theory - Kosaraju's Algorithm
- Graph Theory - Karger's Algorithm
- Graph Coloring
- Graph Theory - Coloring
- Graph Theory - Edge Coloring
- Graph Theory - Total Coloring
- Graph Theory - Greedy Coloring
- Graph Theory - Four Color Theorem
- Graph Theory - Coloring Bipartite Graphs
- Graph Theory - List Coloring
- Advanced Topics of Graph Theory
- Graph Theory - Chromatic Number
- Graph Theory - Chromatic Polynomial
- Graph Theory - Graph Labeling
- Graph Theory - Planarity & Kuratowski's Theorem
- Graph Theory - Planarity Testing Algorithms
- Graph Theory - Graph Embedding
- Graph Theory - Graph Minors
- Graph Theory - Isomorphism
- Spectral Graph Theory
- Graph Theory - Graph Laplacians
- Graph Theory - Cheeger's Inequality
- Graph Theory - Graph Clustering
- Graph Theory - Graph Partitioning
- Graph Theory - Tree Decomposition
- Graph Theory - Treewidth
- Graph Theory - Branchwidth
- Graph Theory - Graph Drawings
- Graph Theory - Force-Directed Methods
- Graph Theory - Layered Graph Drawing
- Graph Theory - Orthogonal Graph Drawing
- Graph Theory - Examples
- Computational Complexity of Graph
- Graph Theory - Time Complexity
- Graph Theory - Space Complexity
- Graph Theory - NP-Complete Problems
- Graph Theory - Approximation Algorithms
- Graph Theory - Parallel & Distributed Algorithms
- Graph Theory - Algorithm Optimization
- Graphs in Computer Science
- Graph Theory - Data Structures for Graphs
- Graph Theory - Graph Implementations
- Graph Theory - Graph Databases
- Graph Theory - Query Languages
- Graph Algorithms in Machine Learning
- Graph Neural Networks
- Graph Theory - Link Prediction
- Graph-Based Clustering
- Graph Theory - PageRank Algorithm
- Graph Theory - HITS Algorithm
- Graph Theory - Social Network Analysis
- Graph Theory - Centrality Measures
- Graph Theory - Community Detection
- Graph Theory - Influence Maximization
- Graph Theory - Graph Compression
- Graph Theory Real-World Applications
- Graph Theory - Network Routing
- Graph Theory - Traffic Flow
- Graph Theory - Web Crawling Data Structures
- Graph Theory - Computer Vision
- Graph Theory - Recommendation Systems
- Graph Theory - Biological Networks
- Graph Theory - Social Networks
- Graph Theory - Smart Grids
- Graph Theory - Telecommunications
- Graph Theory - Knowledge Graphs
- Graph Theory - Game Theory
- Graph Theory - Urban Planning
- Graph Theory Useful Resources
- Graph Theory - Quick Guide
- Graph Theory - Useful Resources
- Graph Theory - Discussion
Graph Theory - Disconnected Graphs
Disconnected Graphs
In graph theory, a disconnected graph is a graph in which not all pairs of vertices are connected by a path. In other words, a graph is disconnected if there exist at least two vertices that cannot be reached by any sequence of edges.
This means that the graph consists of two or more disconnected subgraphs, also known as connected components.
Characteristics of Disconnected Graphs
Following are the major characteristics of a disconnected graph −
- No Path Between Some Vertices: In a disconnected graph, there are at least two vertices where no path exists between them.
- Multiple Components: A disconnected graph consists of two or more components. Each component is itself a connected graph.
- Zero or More Isolated Vertices: An isolated vertex is one that is not connected to any other vertex. A disconnected graph can contain isolated vertices.
- Weak Connectivity in Directed Graphs: In directed graphs (digraphs), a graph is weakly disconnected if, by ignoring the direction of the edges, the graph becomes disconnected.
Properties of Disconnected Graphs
Disconnected graphs have several important properties that help in analyzing their structure −
- Disconnected Components: The graph is divided into disconnected components, which are subgraphs where there is a path between every pair of vertices in the subgraph.
- Articulation Points: Vertices whose removal can increase the number of disconnected components.
- Bridges: Edges whose removal increases the number of disconnected components.
- Graph with Isolated Vertices: A disconnected graph may contain isolated vertices, which do not connect to any other vertices in the graph.
Types of Disconnected Graphs
Disconnected graphs can be classified into several types based on their structure and the relationships between their components −
Disconnected Undirected Graph
An undirected graph is disconnected if it consists of two or more disconnected components. Each component is a connected graph, but there is no path between vertices of different components.
Disconnected Directed Graph
A directed graph (digraph) is disconnected if it has two or more components, with no directed paths between them. These components are directed subgraphs, where each subgraph may or may not have directed paths within itself.
Disconnected Graph with Isolated Vertices
In some disconnected graphs, there may be isolated vertices that are not connected to any other vertex. These vertices form their own components but are not part of any larger connected subgraph.
Algorithms to Check Disconnected Graphs
We can use various algorithms to check if a graph is disconnected −
- Breadth-First Search (BFS)
- Depth-First Search (DFS)
- Union-Find Algorithm
Breadth-First Search (BFS)
In BFS, starting from a selected vertex, we explore all its neighbors and then move to the next level of neighbors. If some vertices are left unexplored, the graph is disconnected.
In the following example, we check for disconnectedness using BFS −
1 - 2 4 | 3
Starting from vertex A, BFS visits vertices 1, 2, and 3, but vertex 4 is left unvisited, indicating the graph is disconnected.
Depth-First Search (DFS)
In DFS, we explore as far along each branch as possible before backtracking. If DFS fails to visit all vertices, the graph is disconnected.
In the following example, we check for disconnectedness using DFS −
A - B C | D
Starting from vertex A, DFS visits vertices A, B, and D, but vertex C is not visited, confirming the graph is disconnected.
Union-Find Algorithm
The Union-Find algorithm groups vertices into disjoint sets. If the graph has more than one set, it is disconnected.
In the following example, we check for disconnectedness using the Union-Find algorithm −
X - Y K | Z
Union-Find detects two disjoint sets: {X, Y, Z} and {K}, confirming that the graph is disconnected.
Applications of Disconnected Graphs
Disconnected graphs have various applications across different fields −
- Network Reliability: Analyzing the reliability of communication and transportation networks, where disconnection might indicate failure points or areas requiring improvement.
- Social Networks: Identifying isolated communities or individuals within larger social networks.
- Computational Biology: Studying biological networks where certain sub-networks may not be connected to others.
- Computer Science: Algorithms for identifying disconnected components, analyzing sparse data structures, and studying distributed systems.
- Geography: Identifying isolated regions or territories in geographical studies, such as regions cut off from the rest due to natural barriers.