当前位置:网站首页>Introduction to some representations, neighbors and degrees of Graphs
Introduction to some representations, neighbors and degrees of Graphs
2022-06-30 04:45:00 【Icy Hunter】
List of articles
Preface
Recently, we need to learn graph neural network , The ultimate goal is to use R-GAT, But it can't be achieved overnight , It should not be difficult to copy the code and run it , But if you can understand the code , Modify the code , You may still need to understand the corresponding model theory . Let's start with the representation of the graph …
The picture below is b From the station video , Because it is really clear from the picture
https://www.bilibili.com/video/BV1U44y1K7yP?p=2&vd_source=f57738ab6bbbbd5fe07aae2e1fa1280f
The representation of the figure
adjacency matrix
Adjacency matrix is a basic graphical representation . Suppose the number of nodes in a graph is N, Then generate a N*N Matrix . The value in the matrix is the relationship between the nodes in the corresponding position, which is generally used as A Express .
If the node i And nodes j Right link , Then the corresponding position of the adjacency matrix is assigned 1 that will do
Undirected graph ( There is no direction on the side , That is, do not distinguish 1->2 and 2->1):
Directed graph :
Weighted digraph :
The values in the matrix can be expressed by weight 
Adjacency list method
Adjacency lists are very friendly to sparse large graphs
There is no direction, no right :
A directed power chart :
Edge set method
The tuple of the head and tail nodes to represent a set of edges
Directed graph :
Undirected graph :
A directed power chart :
Neighbor sum degree
The neighbor of a node refers to the node on the same side and at the other end of the node .
The degree of a node refers to the number of its neighbors
Undirected graph :
Directed graph :
The neighbors of a directed graph are divided into the former and the latter , Degrees can be divided into in degrees and out degrees .
A former stepneighbor : The head node to which the target node is connected when it is the tail node .
Successor neighbor : When the target node is the head node , The tail node connected to it .
Read in : Number of previous neighbors
The degree of : Number of subsequent neighbors
边栏推荐
- 股票利益【非dp】
- 什么是光耦电路,实际使用中应该注意些什么?
- Webots notes day 2
- 【Paper】2015_ Coordinated cruise control for high-speed train movements based on a multi-agent model
- 【Paper】2013_ An efficient model predictive control scheme for an unmanned quadrotor helicopter
- 【Paper】2017_ Research on coordinated control method of underwater vehicle formation marine survey
- 史上最全的Redis基础+进阶项目实战总结笔记
- Introduction to system programming
- Equity interest [non DP]
- Beanfactory creation process
猜你喜欢

Dual domain SSL certificate

Lambda&Stream

【Paper】2021_ Analysis of the Consensus Protocol of Heterogeneous Agents with Time-Delays

How to renew an SSL certificate

史上最全的Redis基础+进阶项目实战总结笔记

Sailing experience not to be missed in New York Tourism: take you to enjoy the magnificent city scenery from different perspectives

Royal Albert Hall, a popular landmark in London

Redis实现短信登入功能(二)Redis实现登入功能

【Paper】2021_ Observer-Based Controllers for Incrementally Quadratic Nonlinear Systems With Disturbanc

Approaching history, introduction to the London Guard Museum
随机推荐
Redis implements SMS login function (II) redis implements login function
Array of small C
Qos(Quality of Service)
Connect to the database and run node JS running database shows that the database is missing
What is an optocoupler circuit and what should be paid attention to in actual use?
A must see cruise experience in Bangkok: visit the Mekong River and enjoy the scenery on both sides of the river
Use of thread pool
深度学习------不同方法实现Inception-10
Arsenal Stadium Tour - take you to the front and back of Arsenal Stadium
【Paper】2019_ Distributed Cooperative Control of a High-speed Train
Junior students summarize JS advanced interview questions
【Paper】2021_ Uniformity of heterogeneous hybrid multi-level intelligent systems using UGV and UAV
Differences between cookies and sessions
Code cloud fatal: authentication failed for
Keywords implements and @override
【Paper】2021_ Analysis of the Consensus Protocol of Heterogeneous Agents with Time-Delays
Salary management system based on servlet+jsp+mysql [source code + database]
【Paper】2015_ Coordinated cruise control for high-speed train movements based on a multi-agent model
Redis implements SMS login function (I) traditional session login
Free travel recommendation in Bangkok: introduction to the Mekong River in Bangkok