How can you check if a sequence of nodes exists in an undirected graph, where each node is adjacent to the next?

后端 未结 0 856
傲寒
傲寒 2021-02-04 04:45

I have an undirected graph of letters in a rectangular format, where each node has an edge to the adjacent neighboring node. For example:

d x f p
o y a a
z t i b
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题