Skip to content
English

Graphs

  • A graph is a set of nodes (also called vertices) joined by edges (connections).
  • Graphs model networks: friends, roads between cities, links between web pages.
  • A tree is really a special graph; a general graph can have cycles and many links per node.

中文

图

  • 图(graph)是一组由边(edge,连接)连起来的节点(node,也叫顶点 vertex)。
  • 图用来给网络建模:朋友关系、城市间的道路、网页之间的链接。
  • 树其实是一种特殊的图;一般的图可以有环,每个节点也可以有很多条连接。

五个节点 A–E 由边相连的图,以及它的邻接表

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩