当前位置:网站首页>Basic concepts and definitions of Graphs
Basic concepts and definitions of Graphs
2022-06-24 20:29:00 【Wukong stopped buying vegetables】
Let's start with a few words :
1.

2.

3.
4.
Let's talk about the following concepts :
1. chart :
A finite nonempty set of vertices and a set of edges between vertices , Usually expressed as G=(V,E),G Represents a graph ,V Represents a collection of vertices ,E Represents a collection of edges
2. Undirected edge and directed edge :
No to the edge : Like from the top v1 To v2 The side of has no direction , We call this edge undirected , Use disorder to couple (v1,v2) Express
There is a directional side : From the top v1 To v2 With direction , We call this side a directed side , Also become an arc arc, Use ordered pairs (v1,v2) Express , among v1 Represents the arc tail ,v2 Indicates arc head , Be careful (v2,v1) And (v1,v2) It's two different directions , That is, two different directed edges
3. Digraph and undirected graph
Undirected graph : Any two vertices in the graph are undirected edges

Directed graph : The edge between any two points is a directed edge

4. Undirected complete graph and directed complete graph
Undirected complete graph : There are edges between any two vertices , contain n Undirected complete graphs of nodes have n(n-1)/2 side

Directed complete graph : In a directed graph , There are two arcs with opposite directions between any two vertices . contain n A directed complete graph of nodes contains n(n-1) side

5. Some other basic definitions

Now let's talk about in and out :
about A Come on , If you put A Think of it as a head arc , The degree of penetration is 2, from B->A,C->A
If you put A As tail of arc , The output is 1,A->D
The number of arcs is equal to the sum of the degrees of each vertex , It is equal to the sum of the penetration of each vertex

6. Connected graph
In the undirected graph , Any two vertices are interconnected , That is, what can be reached , It's a connected graph

The left is not a connected graph , On the right is
Let's talk about connected graph spanning tree
First, it is a minimal connected graph subgraph , It contains all the n Nodes , But only enough to make a tree n-1 side

chart 1 Yes n vertices ,n side , Not a connected graph spanning tree , chart 2 yes , Note that the first must be a connected graph
边栏推荐
- [cann document express issue 04] unveiling the development of shengteng cann operator
- JVM tuning
- redis数据结构之压缩列表
- Redis installation of CentOS system under Linux, adding, querying, deleting, and querying all keys
- Uninstall tool v3.5.10.5670 single file portable official version
- 顺序表的基本操作
- IP address to integer
- [video tutorial] functions that need to be turned off in win10 system. How to turn off the privacy option in win10 computer
- OpenVINO2022 Dev Tools安装与使用
- Map跟object 的区别
猜你喜欢

Microsoft Office Excel 2013 2016 graphic tutorial on how to enable macro function

Apple, Microsoft and Google will no longer fight each other. They will work together to do a big thing this year

Two fellow countrymen from Hunan have jointly launched a 10 billion yuan IPO

得物多活架构设计之路由服务设计

Stackoverflow annual report 2022: what are developers' favorite databases?

Cooking business experience of young people: bloggers are busy selling classes and bringing goods, and the organization earns millions a month

字节、腾讯也下场,这门「月赚3000万」的生意有多香?

Bytebase加入阿里云PolarDB开源数据库社区

Map跟object 的区别

顺序栈1.0版本
随机推荐
lol手游之任务进度条精准计算
gateway
实现基于Socket自定义的redis简单客户端
Bytebase joins Alibaba cloud polardb open source database community
DX12引擎开发课程进度-这个课程到底讲到哪里了
消息称腾讯正式宣布成立“XR”部门,押注元宇宙;谷歌前 CEO:美国即将输掉芯片竞争,要让台积电、三星建更多工厂...
What about the Golden Angel of thunder one? Golden Angel mission details
[video tutorial] functions that need to be turned off in win10 system. How to turn off the privacy option in win10 computer
Apple, Microsoft and Google will no longer fight each other. They will work together to do a big thing this year
微信小程序自定义tabBar
unity实战之lol技能释放范围
Teach you how to view the number of connected people on WiFi in detail how to view the number of connected people on WiFi
JVM tuning
Implement the redis simple client customized based on socket
Behind Tiantian Jianbao storm: tens of millions in arrears, APP shutdown, and the founder's premeditated plan to run away?
unity之模糊背景(带你欣赏女人的朦胧美)
大一女生废话编程爆火!懂不懂编程的看完都拴Q了
Using dynamic time warping (DTW) to solve the similarity measurement of time series and the similarity identification analysis of pollution concentration in upstream and downstream rivers
Some ideas about chaos Engineering
字节、腾讯也下场,这门「月赚3000万」的生意有多香?