Python check if a list of nodes are all in the same connected component in O(n)

后端 未结 0 1343
天命终不由人
天命终不由人 2021-02-10 12:45

I have a list of integers, call L, where each integer in that list represents a node. I also have a dictionary called G, which represents a graph in the format {node:[chil

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