| Algorithm 2: The DFS based tree-filtering algorithm, TF_DFS |
| Input: An uncertain graph G, an integer k, a weight threshold . |
| Output: top-k RSTs. |
|
1: 2: while do 3: 4: if then 5: 6: else if ==k and T is not a spanning tree and then 7: 8: else if and T is a spanning tree then 9: 10: else if and ==k then 11: ; 12: end if 13: end while 14: return |