[英]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.