Exercise · ZW-PATH-IN-A-GRAPH-001 · ★☆☆ Basic

What is the length of the path \(1,2,3,4\) in a graph where \(12\), \(23\) and \(34\) are edges?

Choose one option.

Show answer
  • C. 3

Explanation

The length is the number of edges traversed: 12, 23 and 34, that is 3 (one fewer than the vertices listed).

Study Discrete mathematics in ZWMath →

Review the concept: Path in a graph

A path of length \(k\) is a sequence of vertices \(v_0,\dots,v_k\) such that each consecutive pair is joined by an edge of \(E\).

\[\{v_{i-1},v_i\}\in E,\qquad i=1,\dots,k\]

More practice problems: path in a graph

ZW-PATH-IN-A-GRAPH-002 →