| Function Topology Construction Algorithm at node (v) in G: |
| (1) ; where |
| (2) |
| (3) |
| (4) If |
| (5) |
| (6) = |
| (7) Break; |
| (8) else |
| (9) If == |
| (10) For in decrease order |
| (11) |
| (12) = |
| (13) End for |
| (14) else |
| (15) For in increase order |
| (16) |
| (17) = |
| (18) End For |
| (19) End If |
| (20) End if |
| (21) If |
| (22) |
| (23) End If |
| (24) Trigger topology maintenance Algorithm |