Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Path, simple path, cycle » ?

Aussi appelé : path (graph) · simple path · cycle (graph)

Definition 24.4 University Computer Science — Year 1 · Chapitre 24 — Graphs and Traversals

A path of length kk from uu to vv is a sequence of vertices u=v0,v1,…,vk=vu = v_0, v_1, \dots, v_k = v where each vi−1viv_{i-1} v_i is an edge (an arc vi−1→viv_{i-1} \to v_i in a directed graph). It is simple if its vertices are distinct. A cycle is a path of length at least 1 from a vertex to itself whose other vertices are distinct and distinct from it; in an undirected graph its length must be at least 3 and it uses no edge twice. vv is reachable from uu if there is a path from uu to vv.

Lire dans le chapitre →