全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Path, simple path, cycle?

又称: path (graph) · simple path · cycle (graph)

Definition 24.4 University Computer Science — Year 1 · 第 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.

在原文中阅读 →