全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Directed graph, weighted graph?

又称: directed graph · weighted graph

Definition 9.3 High School Computer Science · 第 9 章 — Graphs: Networks of Roads and People

In a directed graph each edge goes from one vertex to another, like a one-way street: an edge from aa to bb does not let you go from bb to aa. A vertex then has an out-degree, the number of edges leaving it, and an in-degree, the number of edges arriving. In a weighted graph each edge carries a number, its weight: a length in metres, a time, a price.

The same four vertices and four edges, as an undirected graph, a directed graph and a weighted graph.
The same four vertices and four edges, as an undirected graph, a directed graph and a weighted graph.
在原文中阅读 →