全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Adjacency list, successor, predecessor?

又称: adjacency list · successor · predecessor

Definition 26.1 High School Computer Science · 第 26 章 — Graph Traversals and Shortest Paths

The adjacency lists of a graph give, for each vertex, the list of its neighbours; in Python, a dictionary from each vertex to that list. In a directed graph, the vertices at the end of the edges leaving vv are its successors, and those at the start of the edges arriving at vv its predecessors; the lists usually give the successors.

The graph G of the listings, its adjacency lists and its adjacency matrix (rows and columns in the order A to F). The matrix is symmetric because the graph is undirected.
The graph G of the listings, its adjacency lists and its adjacency matrix (rows and columns in the order A to F). The matrix is symmetric because the graph is undirected.
在原文中阅读 →