当前位置:网站首页>图的基本概念以及相关定义
图的基本概念以及相关定义
2022-06-24 19:02:00 【悟空不买菜了】
先来看几个单词:
1.
2.
3.
4.
再来说下面几个概念:
1.图:
顶点的有穷非空集合和顶点之间边的集合组成,通常表示为G=(V,E),G表示一个图,V表示顶点的集合,E表示边的集合
2.无向边与有向边:
无向边:比如从顶点v1到v2的边没有方向,则称这条边为无向边,用无序偶对(v1,v2)表示
有向边:从顶点v1到v2有有方向,则称这条边为有向边,也成为弧arc,用有序偶对(v1,v2)表示,其中v1表示弧尾,v2表示弧头,注意(v2,v1)与(v1,v2)是两个不同的方向,也就是是两条不同的有向边
3.有向图与无向图
无向图:图中任意两个顶点之间都是无向边
有向图 :任意两点之间的边都是有向边
4. 无向完全图与有向完全图
无向完全图:任意两个顶点之间都存在边,含有n个结点的无向完全图有n(n-1)/2条边
有向完全图:在有向图中,任意两个顶点之间都存在方向互为相反的两条弧。含有n个结点的有向完全图含有n(n-1)条边
5.一些其他的基础定义
下面说一下入度与出度:
对于A来说,如果把A当成头弧,入度就为2,从B->A,C->A
如果把A当成弧尾,出度就为1,A->D
弧的数量等于各顶点出度和,等于各顶点入度和
6.连通图
在无向图中,任何两个顶点都是互通的,也就是可以到达的,就是连通图
左边不是连通图,右边是
下面说一下连通图生成树
首先它是一个极小的连通图子图,它含有图中全部n个结点,但是只有足以构成树的n-1条边
图1有n个顶点,n条边,不是连通图生成树,图 2是,注意首先必须是连通图
边栏推荐
- Get to know the data structure of redis - hash
- The Network Security Review Office launched a network security review on HowNet, saying that it "has a large amount of important data and sensitive information"
- Bytebase加入阿里云PolarDB开源数据库社区
- Win7 10 tips for installing Office2010 five solutions for installing MSXML components
- R for Data Science (note) -- data transformation (select basic use)
- First understand redis' data structure - string
- RF_ DC system clock setting gen1/gen2
- 托管服务与SASE,纵享网络与安全融合 | 一期一会回顾
- Write a positive integer to the node and return a floating-point number multiplied by 0.85 when reading the node
- Information theory of popular science Shannon
猜你喜欢
Openstack actual installation and deployment tutorial, openstack installation tutorial
苹果、微软、谷歌不再掐架,今年要合力干一件大事
What are the functions of IBPs open source form designer?
2022年最新四川建筑八大员(电气施工员)模拟题库及答案
Some small requirements for SQL Engine for domestic database manufacturers
天天鉴宝暴雷背后:拖欠数千万、APP停摆,创始人预谋跑路?
实现基于Socket自定义的redis简单客户端
Uninstall tool v3.5.10.5670 single file portable official version
苹果不差钱,但做内容“没底气”
The name of the button in the Siyuan notes toolbar has changed to undefined. Has anyone ever encountered it?
随机推荐
Huawei cloud modelarts has ranked first in China's machine learning public cloud service market for the fourth time!
JVM tuning
The efficiency of okcc call center data operation
Why is the executor thread pool framework introduced
LCD1602 string display (STM32F103)
The agile way? Is agile development really out of date?
unity实战之lol技能释放范围
[R tidyverse] use of select verb
Some ideas about chaos Engineering
Vxlan and MPLS: from data center to Metro Ethernet
Making startup U disk -- Chinese cabbage U disk startup disk making tool V5.1
建立自己的网站(14)
科技抗疫: 运营商网络洞察和实践白皮书 | 云享书库NO.20推荐
Vs2017 setting function Chinese Notes
unity之模糊背景(带你欣赏女人的朦胧美)
2022年最新四川建筑八大员(电气施工员)模拟题库及答案
Obstacle avoidance sensor module (stm32f103c8t6)
IP address to integer
Error in Android connection database query statement
VXLAN 与 MPLS:从数据中心到城域以太网