Skip to content
← All questions

What is the definition of a connected graph in an undirected graph?

A connected graph is an undirected graph in which there exists a path between every pair of vertices. If even one pair of vertices is not connected by a path, the graph is called disconnected.

Conditions

  • The graph is undirected.
  • The criterion for judgment is whether a path exists between any two vertices.

Reasoning, step by step

  1. Identify the graph as an undirected graph.
  2. Check if there is a path between every pair of vertices.
  3. If a path exists for all pairs, the graph is connected.
  4. If at least one pair lacks a path, the graph is disconnected.

Example

In the example graph, although there is no direct edge between vertices A and D, there exists a path A-C-D. Therefore, A and D are connected, and the graph is a connected graph.

Common misconceptions

  • Believing that two vertices must be joined by a direct edge to be connected.
  • Confusing the concept of a path with the concept of an edge.

Watch the explanation

Connected concepts

Explore next

Related questions

Find a method

↗
Meet the concept

↗
Meet the concept

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.