An undirected graph is connected iff every pair of vertices is connected by a path. Otherwise the graph is disconnected.
For directed graph, all directionality is dropped and connectivity is checked.
A graph is disconnected iff its vertex set can be split into 2 disjoint non-empty sets with no edges between them.
A graph is connected iff every entry of A+A2+⋯+An−1 is non-zero.
In a connected graph with n≥2 vertices, any two vertices are connected by a path of length k where k≤n−1.
Connected Component
A maximal connected subgraph. Every pair of vertices inside are connected. No connection to outside vertices. Each component is an isolated piece of a graph.
A connected graph has exactly 1 connected component which is itself. A disconnected graph has more than 2 components.
Distance
Length of the shortest path between two vertices. Denoted as dist(u,v). if no path exists, dist(u,v)=∞. If a path exists between u,v, then dist(u,v)≤n−1.