[英]how to know if the given multiway tree is the sub structure of another multiway tree
給定一個大的多路樹A
和一個小的多路樹B
,我們怎么知道B
是否是A
的子結構?
最后,我找到了一個 python package networkx
可以解決我的問題
gm = isomorphism.DiGraphMatcher(graph,subgraph, node_match)
gm.subgraph_is_isomorphic()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.