当前位置:网站首页>Subgraph isomorphism -subgraph isomorphism
Subgraph isomorphism -subgraph isomorphism
2022-07-03 23:46:00 【Dark blue blue blue】
Subgraph isomorphism is subgraph isomorphism,
hypothesis G Figure ,S Is a subgraph , If S All in node( node ) Between and edge( edge ) Can be mapped to G In the words of ( Just have the same structure ), It is called subgraph isomorphism .
induced subgraph isomorphism:G and S Corresponding node Between edge One-to-one correspondence
non-induced subgraph isomorphism:G Corresponding node Between some edge There is no in S in
Subgraph matching (Subgraph matching computation):
- Calculate candidates node(Candidate computation)
That is to help each S Medium node seek G Nodes in may correspond to each other
Pseudo code :
candidate_node=list()
for node_u in S:
for node_v in G:
if v Have all the u Of label and len(v.neighbours)>=len(u.neighbours):
candidate_node.append(v)
Set the search order
In the simple method, search in random orderIsomorphic search
Use recursive form to put S Each of them node Corresponding G Candidates in node Put in the new sub graph , And match ( Backtracking algorithm ,backtracking, It is somewhat similar to the traversal of a tree )
query_node: S Medium node
data_node: G Medium node( Those correspondences S Of candidate node)
O:query_node Search order of ( It's just one. query_node Of list)
Φ \Phi Φ: All isomorphic sets
ϕ \phi ϕ: An isomorphic object ( Contains query_node And corresponding data_node)
v: One data node
u: One query node
Pseudo code :
def IsomorphismSearch(G,S,C,O,i,$\phi$,$\Phi$):
if $\phi$.query_node=S.node:
$\Phi$.append($\phi$)
else:
u=O[i]
for v in u Of candidate node:
if v not in $\phi$.data_node and IsValid(G,S,$\phi$,u,v):
$\phi$[U]=v
IsomorphismSearch(G,S,C,O,i,$\phi$,$\Phi$)
$\phi$.query_node.remove(u)
return $\Phi$
def IsValid(G,S,$\phi$,u,v):
for u' in u.neighbours:
if neighbour stay $\phi$.query_node in , however u and u' The mapping of edge(v,$\phi$(u')) But in the G Does not exist in the :
return False
if isomorphism yes induced Of :
for u' in u.query_node:
if u' and u Not connected , But they are G Mapping in (v,$\phi$(u')) It's connected :
return False
return True
边栏推荐
- Vscode regular match replace console log(.*)
- What is the difference between NFT, SFT and dnft? How to build NFT platform applications?
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- Gossip about redis source code 81
- How will the complete NFT platform work in 2022? How about its core functions and online time?
- Correlation analysis summary
- Smart fan system based on stm32f407
- Gossip about redis source code 77
- [BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
- 炒股开户佣金优惠怎么才能获得,网上开户安全吗
猜你喜欢

Interpretation of corolla sub low configuration, three cylinder power configuration, CVT fuel saving and smooth, safety configuration is in place

Idea set class header comments

Hcip day 16 notes

Bufferpool caching mechanism for executing SQL in MySQL

Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing

Cgb2201 preparatory class evening self-study and lecture content
![[Mongodb] 2. Use mongodb --------- use compass](/img/d5/0eb7dd4c407fbf2e9ba1b175f5424d.jpg)
[Mongodb] 2. Use mongodb --------- use compass

2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination

Alibaba cloud container service differentiation SLO hybrid technology practice

Gorilla/mux framework (RK boot): add tracing Middleware
随机推荐
China standard gas market prospect investment and development feasibility study report 2022-2028
The interviewer's biggest lie to deceive you, bypassing three years of less struggle
"Learning notes" recursive & recursive
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
2022 system integration project management engineer examination knowledge points: software development model
Alibaba cloud container service differentiation SLO hybrid technology practice
Selenium library 4.5.0 keyword explanation (III)
Fluent learning (4) listview
股票开户最低佣金炒股开户免费,网上开户安全吗
Gossip about redis source code 80
Tencent interview: can you find the number of 1 in binary?
Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
想请教一下,十大劵商如何开户?在线开户是安全么?
"Learning notes" recursive & recursive
Iclr2022: how does AI recognize "things I haven't seen"?
How to write a good title of 10w+?
Investment demand and income forecast report of China's building ceramics industry, 2022-2028
SQL data update
Gossip about redis source code 78
2/14 (regular expression, sed streaming editor)