
- 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 - Weakly Connected Graphs
Weakly Connected Graphs
A weakly connected graph is a directed graph in which there is a path between any two vertices if we ignore the direction of edges. In other words, a graph is weakly connected if replacing all its directed edges with undirected edges results in a connected graph.
Properties of Weakly Connected Graphs
Weakly connected graphs have several important properties, such as −
- Undirected Connectivity: If we ignore the direction of edges, there is a path between any pair of vertices in the graph. However, the directed edges may not allow full bidirectional reachability.
- Multiple Components: A weakly connected graph may contain multiple weakly connected components, as some vertices may not be reachable from others when considering the direction of edges.
- Not Fully Reachable: Unlike strongly connected graphs, weakly connected graphs may have vertices that are unreachable due to the directionality of edges, but there will be a path if directionality is ignored.
- Not Cyclic: A weakly connected graph can contain cycles in the undirected version of the graph, but it might not have cycles when considering edge direction.
Weakly Connected Components (WCCs)
In a weakly connected graph, it can be helpful to break the graph into smaller subgraphs known as weakly connected components (WCCs). An WCC is a maximal subgraph where any two vertices are connected by a path when ignoring the edge directions.
The following image shows a graph broken into weakly connected components −

- Maximal: A WCC is the largest subgraph where all vertices are connected when directionality of edges is ignored.
- Independence: Each WCC is weakly connected, and no vertex in one WCC is reachable from a vertex in another WCC when ignoring edge direction.
- Partition: The entire graph can be partitioned into WCCs, where each WCC is a connected component in the undirected version of the graph.
Conditions for Weak Connectivity
A directed graph is weakly connected if and only if it satisfies the following condition −
- When we ignore the direction of edges, there is a path between any pair of vertices u and v. That is, for every pair of vertices u and v, there exists a path from u to v and a path from v to u when the directions are ignored.
Example: Weakly Connected Graph
In the below graph, there is a path between all pairs of vertices when ignoring edge directions, but the directed edges do not guarantee full reachability −

Applications of Weakly Connected Graphs
Weakly connected graphs have practical applications in scenarios where the direction of edges is not as important, but overall connectivity matters −
- Routing Algorithms: In some routing algorithms, especially in communication networks, weak connectivity ensures that all nodes are reachable regardless of edge direction.
- Social Networks: In social networks, weak connectivity can represent groups where any two users can interact indirectly, even though the interactions are not necessarily bidirectional.
- Infrastructure Systems: In infrastructure networks (like water or electricity grids), weak connectivity ensures that all points in the network are indirectly connected, ensuring strongness even in the case of edge directionality being ignored.
- Graph Partitioning: Weakly connected graphs are used in graph partitioning to ensure that the network can be split into smaller subgraphs while maintaining connectivity in the undirected version.
Testing Weak Connectivity
There are several methods for testing whether a directed graph is weakly connected, such as −
- DFS-Based Algorithm: A depth-first search (DFS) can be used to check if there is a path between all vertices when we ignore the direction of edges. If all vertices are reachable from a starting vertex in an undirected version of the graph, the graph is weakly connected.
- Breadth-First Search (BFS): Similar to DFS, BFS can be used to check if the graph is weakly connected by treating all edges as undirected and confirming reachability between all pairs of vertices.
- Connected Components Algorithm: One way to check for weak connectivity is by finding all the connected components in the undirected version of the graph. If there is exactly one connected component, the graph is weakly connected.
Weak Connectivity in Various Graphs
Following are the lists of various types of directed graphs and their weak connectivity status −
Graph Type | Weakly Connected | Notes |
---|---|---|
Simple Path | No | There is no undirected path between all pairs of vertices. |
Cycle Graph | Yes | Ignoring edge directions, every vertex is connected to every other vertex. |
Complete Directed Graph (Kn) | Yes | Every vertex is connected to every other vertex in an undirected manner, making the graph weakly connected. |
Tree | No | A tree is a directed acyclic graph (DAG), so it cannot be weakly connected. |
Directed Acyclic Graph (DAG) | No | DAGs may not be weakly connected, as there could be unreachable vertices when directions are ignored. |
Wheel Graph | Yes | The center vertex connects to all outer vertices, making the graph weakly connected when ignoring directions. |
Star Graph (Directed) | No | There is no undirected path from leaf vertices back to the center vertex. |
Random Directed Graph | Depends | Weak connectivity depends on the structure of the graph. |