|
Algorithm 4 calculate_rules |
Input:
Output:
-
1:
-
2:
Generate directed graph from
-
3:
Remove edges with weight <
-
4:
Get connected components of the graph
-
5:
for all
do
-
6:
if
then
-
7:
Sort nodes of the connected component graph by time
-
8:
Append the nodes to
-
9:
end if
-
10:
end for
-
11:
return
|