| Input: : The scenario graph in the form |
| Output: : ITM |
| Data: : a flag indicates whether a region is formed |
| or not |
| 1: RegionFound = TRUE // Initially assumes composition is possible |
| 2: while do |
| 3: |
| 4: |
| 5: end while |
| 6: return // No more composition possible |
| Algorithm—Building ITM |