无向图1(UNDIRECTED GRAPHS)

图和图像的无关性

A drawing gives us intuition about the structure of the graph; but this intuition can be misleading, because the graph is defined independently of the drawing.

For example, the two drawings at left represent the same graph, because the graph is nothing more than its (unor-dered) set of vertices and its (unordered) collection of edges (vertex pairs).

这里写图片描述

基本术语(Glossary)

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

A bipartite graph is a graph whose vertices we can divide into two sets such that all edges connect a vertex in one set with a vertex in the other set:

这里写图片描述

图何时等于树

a graph G with V vertices is a tree if and only if it satisfies any of the following five conditions:

■ G has V-1 edges and no cycles.
G有V-1条边 & 不含环
■ G has V-1 edges and is connected.
G有V-1条边 & 连通的
■ G is connected, but removing any edge disconnects it.
G是连通的 & 删除任意一条边都会使其不连通
■ G is acyclic, but adding any edge creates a cycle.
G是无环图 & 添加任意一条边都会产生一条环
■ Exactly one simple path connects each pair of vertices in G.
任意一对顶点仅有一条边

API

这里写图片描述

终于有时间再温习下算法了,接下来是实现。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值