find different DFS walk from given node to Header node
(graph, start, end, path=None)
| 170 | |
| 171 | |
| 172 | def my_dfs(graph, start, end, path=None): |
| 173 | """ |
| 174 | find different DFS walk from given node to Header node |
| 175 | """ |
| 176 | path = (path or []) + [start] |
| 177 | if start == end: |
| 178 | paths.append(path) |
| 179 | for node in graph[start]: |
| 180 | if tuple(node) not in path: |
| 181 | my_dfs(graph, tuple(node), end, path) |
| 182 | |
| 183 | |
| 184 | def find_freq_subgraph_given_support(s, cluster, graph): |
no test coverage detected