Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Directed graph, weighted graph » ?

Aussi appelé : directed graph · weighted graph

Definition 9.3 High School Computer Science · Chapitre 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.
Lire dans le chapitre →