Search⌘ K
AI Features

Graph Terminology II

Explore fundamental graph concepts such as cycles, reachability, and connectivity. Understand the difference between undirected and directed graphs, learn about strong and weak connectivity, and grasp how shortest paths determine distances between nodes.

We'll cover the following...

Cycles

A cycle is similar to a path, except that its first and last nodes are identical. In other words, a cycle is like a path that loops back into itself.

The following example graph shows the cycle acdaa \to c \to d \to a marked in blue.

g a a c c a->c b b a->b d d c->d d->a d->b
A cycle with three edges.

In an undirected graph, a single edge between nodes uu and vv consists of the two “half-edges” (u,v)(u, v) and (v,u)(v, u). However, the walk uvuu \to v \to u ...