# Animal protocol 1 4 object 1 Polyline color (0,0,0) fwArrow closed filled nodes: { (10,10) (10,50) (270,50) (270,10) (10,10)} fillColor (255,255,255) depth 2147483647 2 object 2 Text at (20,40) color (0,0,0) font SansSerif style 1 size 24 text: "Graph Algorithms" depth 2147483647 2 object 4 Text at (40,80) color (0,0,0) font SansSerif style 1 size 16 text: "Topological Sorting" depth 2147483647 4 object 3 Polyline color (0,0,0) fwArrow closed filled nodes: { (30,60) (30,90) (250,90) (250,60) (30,60)} fillColor (255,255,255) depth 2147483647 4 object 5 Arc center (60,130) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "A" textColor (0,0,0) depth 2147483647 4 object 6 Arc center (110,190) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "B" textColor (0,0,0) depth 2147483647 4 object 7 Arc center (180,190) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "C" textColor (0,0,0) depth 2147483647 4 object 8 Arc center (110,260) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "D" textColor (0,0,0) depth 2147483647 4 object 9 Arc center (180,260) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "E" textColor (0,0,0) depth 2147483647 4 object 10 Arc center (250,190) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "G" textColor (0,0,0) depth 2147483647 4 object 11 Arc center (320,130) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "H" textColor (0,0,0) depth 2147483647 4 object 12 Arc center (390,130) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "I" textColor (0,0,0) depth 2147483647 4 object 13 Arc center (320,260) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "J" textColor (0,0,0) depth 2147483647 4 object 14 Arc center (390,260) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "K" textColor (0,0,0) depth 2147483647 4 object 15 Arc center (320,330) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "L" textColor (0,0,0) depth 2147483647 4 object 16 Arc center (390,330) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "M" textColor (0,0,0) depth 2147483647 4 object 17 Arc center (60,330) rX 20 rY 20 color (0,0,0) angle 720 starts 0 circle text: "F" textColor (0,0,0) depth 2147483647 4 object 18 Polyline color (0,0,0) fwArrow filled nodes: { (60,150) (60,310)} fillColor (255,255,255) depth 2147483647 4 object 19 Polyline color (0,0,0) fwArrow filled nodes: { (80,140) (110,170)} fillColor (255,255,255) depth 2147483647 4 object 20 Polyline color (0,0,0) fwArrow filled nodes: { (80,130) (180,170)} fillColor (255,255,255) depth 2147483647 4 object 21 Polyline color (0,0,0) fwArrow filled nodes: { (80,130) (250,170)} fillColor (255,255,255) depth 2147483647 4 object 22 Polyline color (0,0,0) fwArrow filled nodes: { (260,170) (300,130)} fillColor (255,255,255) depth 2147483647 4 object 23 Polyline color (0,0,0) fwArrow filled nodes: { (340,130) (370,130)} fillColor (255,255,255) depth 2147483647 4 object 24 Polyline color (0,0,0) fwArrow filled nodes: { (70,310) (100,280)} fillColor (255,255,255) depth 2147483647 4 object 25 Polyline color (0,0,0) fwArrow filled nodes: { (80,330) (160,270)} fillColor (255,255,255) depth 2147483647 4 object 26 Polyline color (0,0,0) fwArrow filled nodes: { (160,260) (130,260)} fillColor (255,255,255) depth 2147483647 4 object 27 Polyline color (0,0,0) fwArrow filled nodes: { (230,200) (190,240)} fillColor (255,255,255) depth 2147483647 4 object 28 Polyline color (0,0,0) fwArrow filled nodes: { (310,240) (270,200)} fillColor (255,255,255) depth 2147483647 4 object 29 Polyline color (0,0,0) fwArrow filled nodes: { (300,320) (250,210)} fillColor (255,255,255) depth 2147483647 4 object 30 Polyline color (0,0,0) fwArrow filled nodes: { (340,260) (370,260)} fillColor (255,255,255) depth 2147483647 4 object 31 Polyline color (0,0,0) fwArrow filled nodes: { (340,330) (370,330)} fillColor (255,255,255) depth 2147483647 4 object 32 Polyline color (0,0,0) fwArrow filled nodes: { (320,280) (320,310)} fillColor (255,255,255) depth 2147483647 4 object 33 Polyline color (0,0,0) fwArrow filled nodes: { (340,270) (380,310)} fillColor (255,255,255) depth 2147483647 2 object 35 Text at (20,410) color (0,0,0) font SansSerif style 1 size 16 text: "Topological Sorting:" depth 2147483647 2 object 36 Text at (40,440) color (0,0,0) font SansSerif style 0 size 16 text: "1. Find a node without predecessor" depth 2147483647 2 object 37 Text at (40,460) color (0,0,0) font SansSerif style 0 size 16 text: "2. Append node to the end of the sorted list" depth 2147483647 2 object 38 Text at (40,480) color (0,0,0) font SansSerif style 0 size 16 text: "3. 'Remove' node and its edges" depth 2147483647 2 object 39 Text at (40,500) color (0,0,0) font SansSerif style 0 size 16 text: "4. Repeat step 1 until graph is empty" depth 2147483647 2 object 40 Text at (20,540) color (0,0,0) font SansSerif style 1 size 16 text: "List of Topological Sorting:" depth 2147483647 2 object 41 Text at (40,570) color (0,0,0) font SansSerif style 1 size 16 text: "A" depth 2147483647 2 object 42 Text at (60,570) color (0,0,0) font SansSerif style 1 size 16 text: "B" depth 2147483647 2 object 43 Text at (80,570) color (0,0,0) font SansSerif style 1 size 16 text: "J" depth 2147483647 2 object 44 Text at (100,570) color (0,0,0) font SansSerif style 1 size 16 text: "L" depth 2147483647 2 object 45 Text at (120,570) color (0,0,0) font SansSerif style 1 size 16 text: "G" depth 2147483647 2 object 46 Text at (140,570) color (0,0,0) font SansSerif style 1 size 16 text: "C" depth 2147483647 2 object 47 Text at (160,570) color (0,0,0) font SansSerif style 1 size 16 text: "F" depth 2147483647 2 object 48 Text at (180,570) color (0,0,0) font SansSerif style 1 size 16 text: "E" depth 2147483647 2 object 49 Text at (200,570) color (0,0,0) font SansSerif style 1 size 16 text: "D" depth 2147483647 2 object 50 Text at (220,570) color (0,0,0) font SansSerif style 1 size 16 text: "K" depth 2147483647 2 object 51 Text at (240,570) color (0,0,0) font SansSerif style 1 size 16 text: "M" depth 2147483647 2 object 52 Text at (260,570) color (0,0,0) font SansSerif style 1 size 16 text: "H" depth 2147483647 2 object 53 Text at (280,570) color (0,0,0) font SansSerif style 1 size 16 text: "I" depth 2147483647 STEPS: 1 Link 1 next step 2 after key press 2 Step 1 Show 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 Step 1 Show 28 29 30 31 32 33 2 Step 1 Show 35 36 37 38 39 40 1 Link 2 next step 3 after key press 2 Step 2 ColorChange 36 by "color" set to (255,0,0) 2 Step 2 ColorChange 5 by "color" timed starting after 50 ticks set to (255,0,0) 1 Link 3 next step 4 after key press 2 Step 3 ColorChange 36 by "color" set to (0,0,0) 2 Step 3 ColorChange 37 by "color" set to (255,0,0) 2 Step 3 Show 41 1 Link 4 next step 5 after time 500 ms 2 Step 4 ColorChange 37 by "color" set to (0,0,0) 2 Step 4 ColorChange 18 19 20 21 38 by "color" set to (255,0,0) 1 Link 5 next step 6 after key press 2 Step 5 ColorChange 5 18 19 20 21 by "color" set to (0,0,255) 1 Link 6 next step 7 after key press 2 Step 6 ColorChange 38 by "color" set to (0,0,0) 2 Step 6 ColorChange 39 by "color" set to (255,0,0) 1 Link 7 next step 8 after key press 2 Step 7 ColorChange 39 by "color" set to (0,0,0) 2 Step 7 ColorChange 6 36 by "color" set to (255,0,0) 1 Link 8 next step 9 after key press 2 Step 8 ColorChange 36 by "color" set to (0,0,0) 2 Step 8 ColorChange 37 by "color" set to (255,0,0) 2 Step 8 Show 42 1 Link 9 next step 10 after time 500 ms 2 Step 9 ColorChange 37 by "color" set to (0,0,0) 2 Step 9 ColorChange 38 by "color" set to (255,0,0) 1 Link 10 next step 11 after key press 2 Step 10 ColorChange 6 by "color" set to (0,0,255) 1 Link 11 next step 12 after key press 2 Step 11 ColorChange 38 by "color" set to (0,0,0) 2 Step 11 ColorChange 39 by "color" set to (255,0,0) 1 Link 12 next step 13 after key press 2 Step 12 ColorChange 39 by "color" set to (0,0,0) 2 Step 12 ColorChange 13 36 by "color" set to (255,0,0) 1 Link 13 next step 14 after key press 2 Step 13 ColorChange 36 by "color" set to (0,0,0) 2 Step 13 ColorChange 37 by "color" set to (255,0,0) 2 Step 13 Show 43 1 Link 14 next step 15 after time 500 ms 2 Step 14 ColorChange 28 30 32 33 38 by "color" set to (255,0,0) 2 Step 14 ColorChange 37 by "color" set to (0,0,0) 1 Link 15 next step 16 after key press 2 Step 15 ColorChange 13 28 30 32 33 by "color" set to (0,0,255) 1 Link 16 next step 17 after key press 2 Step 16 ColorChange 38 by "color" set to (0,0,0) 2 Step 16 ColorChange 39 by "color" set to (255,0,0) 1 Link 17 next step 18 after key press 2 Step 17 ColorChange 39 by "color" set to (0,0,0) 2 Step 17 ColorChange 15 36 by "color" set to (255,0,0) 1 Link 18 next step 19 after key press 2 Step 18 ColorChange 36 by "color" set to (0,0,0) 2 Step 18 ColorChange 37 by "color" set to (255,0,0) 2 Step 18 Show 44 1 Link 19 next step 20 after time 500 ms 2 Step 19 ColorChange 37 by "color" set to (0,0,0) 2 Step 19 ColorChange 29 31 38 by "color" set to (255,0,0) 1 Link 20 next step 21 after key press 2 Step 20 ColorChange 15 29 31 by "color" set to (0,0,255) 1 Link 21 next step 22 after key press 2 Step 21 ColorChange 38 by "color" set to (0,0,0) 2 Step 21 ColorChange 39 by "color" set to (255,0,0) 1 Link 22 next step 23 after key press 2 Step 22 ColorChange 10 36 by "color" set to (255,0,0) 2 Step 22 ColorChange 39 by "color" set to (0,0,0) 1 Link 23 next step 24 after key press 2 Step 23 ColorChange 37 by "color" set to (255,0,0) 2 Step 23 ColorChange 36 by "color" set to (0,0,0) 2 Step 23 Show 45 1 Link 24 next step 25 after time 500 ms 2 Step 24 ColorChange 37 by "color" set to (0,0,0) 2 Step 24 ColorChange 22 27 38 by "color" set to (255,0,0) 1 Link 25 next step 26 after key press 2 Step 25 ColorChange 10 22 27 by "color" set to (0,0,255) 1 Link 26 next step 27 after key press 2 Step 26 ColorChange 38 by "color" set to (0,0,0) 2 Step 26 ColorChange 39 by "color" set to (255,0,0) 1 Link 27 next step 28 after key press 2 Step 27 ColorChange 7 36 by "color" set to (255,0,0) 2 Step 27 ColorChange 39 by "color" set to (0,0,0) 1 Link 28 next step 29 after key press 2 Step 28 ColorChange 36 by "color" set to (0,0,0) 2 Step 28 ColorChange 37 by "color" set to (255,0,0) 2 Step 28 Show 46 1 Link 29 next step 30 after time 500 ms 2 Step 29 ColorChange 38 by "color" set to (255,0,0) 2 Step 29 ColorChange 37 by "color" set to (0,0,0) 1 Link 30 next step 34 after key press 2 Step 30 ColorChange 7 by "color" set to (0,0,255) 1 Link 34 next step 31 after key press 2 Step 34 ColorChange 38 by "color" set to (0,0,0) 2 Step 34 ColorChange 39 by "color" set to (255,0,0) 1 Link 31 next step 32 after key press 2 Step 31 ColorChange 39 by "color" set to (0,0,0) 2 Step 31 ColorChange 17 36 by "color" set to (255,0,0) 1 Link 32 next step 33 after key press 2 Step 32 ColorChange 37 by "color" set to (255,0,0) 2 Step 32 ColorChange 36 by "color" set to (0,0,0) 2 Step 32 Show 47 1 Link 33 next step 35 after time 500 ms 2 Step 33 ColorChange 37 by "color" set to (0,0,0) 2 Step 33 ColorChange 24 25 38 by "color" set to (255,0,0) 1 Link 35 next step 36 after key press 2 Step 35 ColorChange 17 24 25 by "color" set to (0,0,255) 1 Link 36 next step 37 after key press 2 Step 36 ColorChange 38 by "color" set to (0,0,0) 2 Step 36 ColorChange 9 36 by "color" set to (255,0,0) 1 Link 37 next step 38 after key press 2 Step 37 ColorChange 37 by "color" set to (255,0,0) 2 Step 37 ColorChange 36 by "color" set to (0,0,0) 2 Step 37 Show 48 1 Link 38 next step 39 after time 500 ms 2 Step 38 ColorChange 37 by "color" set to (0,0,0) 2 Step 38 ColorChange 26 38 by "color" set to (255,0,0) 1 Link 39 next step 40 after key press 2 Step 39 ColorChange 9 26 by "color" set to (0,0,255) 1 Link 40 next step 41 after key press 2 Step 40 ColorChange 39 by "color" set to (255,0,0) 2 Step 40 ColorChange 38 by "color" set to (0,0,0) 1 Link 41 next step 42 after key press 2 Step 41 ColorChange 39 by "color" set to (0,0,0) 2 Step 41 ColorChange 8 36 by "color" set to (255,0,0) 1 Link 42 next step 43 after key press 2 Step 42 ColorChange 37 by "color" set to (255,0,0) 2 Step 42 ColorChange 36 by "color" set to (0,0,0) 2 Step 42 Show 49 1 Link 43 next step 44 after time 500 ms 2 Step 43 ColorChange 37 by "color" set to (0,0,0) 2 Step 43 ColorChange 38 by "color" set to (255,0,0) 1 Link 44 next step 45 after key press 2 Step 44 ColorChange 8 by "color" set to (0,0,255) 1 Link 45 next step 46 after key press 2 Step 45 ColorChange 38 by "color" set to (0,0,0) 2 Step 45 ColorChange 39 by "color" set to (255,0,0) 1 Link 46 next step 47 after key press 2 Step 46 ColorChange 36 by "color" set to (255,0,0) 2 Step 46 ColorChange 14 by "color" set to (255,0,0) 2 Step 46 ColorChange 39 by "color" set to (0,0,0) 1 Link 47 next step 48 after key press 2 Step 47 ColorChange 36 by "color" set to (0,0,0) 2 Step 47 ColorChange 37 by "color" set to (255,0,0) 2 Step 47 Show 50 1 Link 48 next step 49 after time 500 ms 2 Step 48 ColorChange 38 by "color" set to (255,0,0) 2 Step 48 ColorChange 37 by "color" set to (0,0,0) 1 Link 49 next step 50 after key press 2 Step 49 ColorChange 14 by "color" set to (0,0,255) 1 Link 50 next step 51 after key press 2 Step 50 ColorChange 38 by "color" set to (0,0,0) 2 Step 50 ColorChange 39 by "color" set to (255,0,0) 1 Link 51 next step 52 after key press 2 Step 51 ColorChange 16 36 by "color" set to (255,0,0) 2 Step 51 ColorChange 39 by "color" set to (0,0,0) 1 Link 52 next step 53 after key press 2 Step 52 ColorChange 36 by "color" set to (0,0,0) 2 Step 52 ColorChange 37 by "color" set to (255,0,0) 2 Step 52 Show 51 1 Link 53 next step 54 after time 500 ms 2 Step 53 ColorChange 38 by "color" set to (255,0,0) 2 Step 53 ColorChange 37 by "color" set to (0,0,0) 1 Link 54 next step 55 after key press 2 Step 54 ColorChange 16 by "color" set to (0,0,255) 1 Link 55 next step 56 after key press 2 Step 55 ColorChange 38 by "color" set to (0,0,0) 2 Step 55 ColorChange 39 by "color" set to (255,0,0) 1 Link 56 next step 57 after key press 2 Step 56 ColorChange 11 36 by "color" set to (255,0,0) 2 Step 56 ColorChange 39 by "color" set to (0,0,0) 1 Link 57 next step 58 after key press 2 Step 57 ColorChange 37 by "color" set to (255,0,0) 2 Step 57 ColorChange 36 by "color" set to (0,0,0) 2 Step 57 Show 52 1 Link 58 next step 59 after time 500 ms 2 Step 58 ColorChange 37 by "color" set to (0,0,0) 2 Step 58 ColorChange 23 38 by "color" set to (255,0,0) 1 Link 59 next step 60 after key press 2 Step 59 ColorChange 11 23 by "color" set to (0,0,255) 1 Link 60 next step 61 after key press 2 Step 60 ColorChange 38 by "color" set to (0,0,0) 2 Step 60 ColorChange 39 by "color" set to (255,0,0) 1 Link 61 next step 62 after key press 2 Step 61 ColorChange 12 36 by "color" set to (255,0,0) 2 Step 61 ColorChange 39 by "color" set to (0,0,0) 1 Link 62 next step 63 after key press 2 Step 62 ColorChange 36 by "color" set to (0,0,0) 2 Step 62 ColorChange 37 by "color" set to (255,0,0) 2 Step 62 Show 53 1 Link 63 next step 64 after time 500 ms 2 Step 63 ColorChange 38 by "color" set to (255,0,0) 2 Step 63 ColorChange 37 by "color" set to (0,0,0) 1 Link 64 next step 65 after key press 2 Step 64 ColorChange 12 by "color" set to (0,0,255) 1 Link 65 next step 2147483647 after key press 2 Step 65 ColorChange 39 by "color" set to (0,0,255) 2 Step 65 ColorChange 38 by "color" set to (0,0,0) 1 Link END Next 53