当前位置:网站首页>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
边栏推荐
- Junior students summarize JS advanced interview questions
- PS1 Contemporary Art Center, Museum of modern art, New York
- [control] multi agent system summary. 5. system consolidation.
- Create a simple battle game with photon pun
- 【Paper】2006_ Time-Optimal Control of a Hovering Quad-Rotor Helicopter
- 股票利益【非dp】
- Connect to the database and run node JS running database shows that the database is missing
- harbor api 2.0查询
- 圆心科技,很焦虑?
- Check London attractions suitable for parents and children in winter vacation
猜你喜欢

Singapore must visit these scenic spots during the Spring Festival

【Paper】2016_ A Learning-Based Fault Tolerant Tracking Control of an Unmanned Quadrotor Helicopter
![Tea mall system based on SSM framework [project source code + database script + report]](/img/d9/0a46c0da9839a7186bd3a9ae55f0a5.png)
Tea mall system based on SSM framework [project source code + database script + report]

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

Connect to the database and run node JS running database shows that the database is missing

Redis实现短信登入功能(一)传统的Session登入

Recommended cultural landmarks of these tourist attractions in Bangkok

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

Geotrustov wildcard

What to do when the alicloud SSL certificate expires
随机推荐
基于servlet+jsp+mysql实现的工资管理系统【源码+数据库】
One interview question and one joint index every day
小C的数组(array)
Dual domain SSL certificate
Array of small C
【Paper】2017_ Distributed control for high-speed trains movements
File and IO
Redis implements SMS login function (I) traditional session login
Thread safety and processing caused by multithreading
Qos(Quality of Service)
Implementation of one interview question one distributed lock every day
Cheap SSL certificate abroad
Differences between cookies and sessions
harbor api 2.0查询
SQL error caused by entity class: Oracle "ora-00904" error: possible case of invalid identifier
Method of applying for code signing certificate by enterprise
输入输出及中断技术——微机第六章学习笔记
Threejs realizes the simulation of river, surface flow, pipe flow and sea surface
Learn about threads
Break through the existing customer group marketing, and try customer grouping management (including clustering model and other practical effect evaluation)