@@ -140,49 +140,49 @@ end
140140; Copyright 1997 Uri Wilensky.
141141; See Info tab for full copyright and license.]]> </code >
142142 <widgets >
143- <view x =" 153" wrappingAllowedX =" true" y =" 10" frameRate =" 30.0" minPycor =" -50" height =" 307" showTickCounter =" true" patchSize =" 3.0" fontSize =" 10" wrappingAllowedY =" true" width =" 307" tickCounterLabel =" ticks" maxPycor =" 50" updateMode =" 1" maxPxcor =" 50" minPxcor =" -50" ></view >
144- <button x =" 16" y =" 75" height =" 33" disableUntilTicks =" false" forever =" false" kind =" Observer" display =" setup-random" width =" 121" sizeVersion =" 0" >setup false</button >
145- <plot x =" 233" autoPlotX =" true" yMax =" 100.0" autoPlotY =" true" yAxis =" difference" y =" 346" xMin =" 0.0" height =" 179" legend =" false" xMax =" 20.0" yMin =" 0.0" xAxis =" time" display =" Successive Differences" width =" 260" sizeVersion =" 0" >
146- <setup >set-plot-y-range 0 precision (count patches / 100) -2</setup >
143+ <view x =" 186" wrappingAllowedX =" true" y =" 11" frameRate =" 30.0" minPycor =" -50" height =" 307" showTickCounter =" true" patchSize =" 3.0" fontSize =" 10" wrappingAllowedY =" true" width =" 307" tickCounterLabel =" ticks" maxPycor =" 50" updateMode =" 1" maxPxcor =" 50" minPxcor =" -50" ></view >
144+ <slider x =" 8" step =" 0.1" y =" 91" max =" 10" width =" 163" display =" init-clique" height =" 50" min =" 0" direction =" Horizontal" default =" 0.1" variable =" init-clique" ></slider >
145+ <button x =" 8" y =" 190" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 80" display =" step" >go</button >
146+ <button x =" 93" y =" 190" height =" 35" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 78" display =" go" >go</button >
147+ <button x =" 8" y =" 51" height =" 35" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 163" display =" setup-random" >setup false</button >
148+ <button x =" 8" y =" 11" height =" 35" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 163" display =" setup-one" >setup true</button >
149+ <monitor x =" 8" precision =" 3" y =" 238" height =" 60" fontSize =" 11" width =" 163" display =" clique %" >(clique / count patches)
150+ * 100</monitor >
151+ <switch x =" 8" y =" 146" height =" 40" on =" false" variable =" eight-mode?" width =" 163" display =" eight-mode?" ></switch >
152+ <plot x =" 533" autoPlotX =" true" yMax =" 2.0" autoPlotY =" true" yAxis =" ratio" y =" 329" xMin =" 0.0" height =" 186" legend =" false" xMax =" 20.0" yMin =" 0.0" width =" 234" xAxis =" time" display =" Successive Ratios" >
153+ <setup ></setup >
147154 <update ></update >
148155 <pen interval =" 1.0" mode =" 0" display =" default" color =" -2674135" legend =" true" >
149156 <setup ></setup >
150- <update >plot clique - previous-clique</update >
157+ <update >ifelse previous-clique = 0 [ plot 1 ] [ plot clique / previous-clique ] </update >
151158 </pen >
152159 </plot >
153- <plot x =" 496 " autoPlotX =" true" yMax =" 2 .0" autoPlotY =" true" yAxis =" ratio " y =" 346 " xMin =" 0.0" height =" 179 " legend =" false" xMax =" 20.0" yMin =" 0.0" xAxis = " time " display = " Successive Ratios " width = " 216 " sizeVersion = " 0 " >
160+ <plot x =" 8 " autoPlotX =" true" yMax =" 100 .0" autoPlotY =" true" yAxis =" percent " y =" 329 " xMin =" 0.0" height =" 186 " legend =" false" xMax =" 20.0" yMin =" 0.0" width = " 239 " xAxis = " time " display = " Rumor Spread " >
154161 <setup ></setup >
155162 <update ></update >
156163 <pen interval =" 1.0" mode =" 0" display =" default" color =" -2674135" legend =" true" >
157164 <setup ></setup >
158- <update >ifelse previous-clique = 0 [ plot 1 ] [ plot clique / previous-clique ] </update >
165+ <update >plot ( clique / count patches) * 100 </update >
159166 </pen >
160167 </plot >
161- <plot x =" 9 " autoPlotX =" true" yMax =" 100.0" autoPlotY =" true" yAxis =" percent " y =" 346 " xMin =" 0.0" height =" 179 " legend =" false" xMax =" 20.0" yMin =" 0.0" xAxis = " time " display = " Rumor Spread " width = " 223 " sizeVersion = " 0 " >
162- <setup ></setup >
168+ <plot x =" 260 " autoPlotX =" true" yMax =" 100.0" autoPlotY =" true" yAxis =" difference " y =" 329 " xMin =" 0.0" height =" 186 " legend =" false" xMax =" 20.0" yMin =" 0.0" width = " 260 " xAxis = " time " display = " Successive Differences " >
169+ <setup >set-plot-y-range 0 precision (count patches / 100) -2 </setup >
163170 <update ></update >
164171 <pen interval =" 1.0" mode =" 0" display =" default" color =" -2674135" legend =" true" >
165172 <setup ></setup >
166- <update >plot ( clique / count patches) * 100 </update >
173+ <update >plot clique - previous-clique </update >
167174 </pen >
168175 </plot >
169- <button x =" 1" y =" 202" height =" 33" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" step" width =" 77" sizeVersion =" 0" >go</button >
170- <slider x =" 2" step =" 0.1" y =" 118" max =" 10" display =" init-clique" height =" 33" min =" 0" direction =" Horizontal" default =" 0.1" variable =" init-clique" width =" 148" sizeVersion =" 0" ></slider >
171- <switch x =" 2" y =" 152" height =" 33" on =" false" variable =" eight-mode?" display =" eight-mode?" width =" 147" sizeVersion =" 0" ></switch >
172- <button x =" 16" y =" 41" height =" 33" disableUntilTicks =" false" forever =" false" kind =" Observer" display =" setup-one" width =" 121" sizeVersion =" 0" >setup true</button >
173- <button x =" 79" y =" 202" height =" 33" disableUntilTicks =" true" forever =" true" kind =" Observer" display =" go" width =" 69" sizeVersion =" 0" >go</button >
174- <button x =" 499" y =" 115" height =" 33" disableUntilTicks =" false" forever =" false" kind =" Observer" display =" color: normal" width =" 146" sizeVersion =" 0" >set color-mode 0
176+ <button x =" 504" y =" 10" height =" 35" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 206" >spread-rumor-with-mouse</button >
177+ <button x =" 504" y =" 58" height =" 35" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 206" display =" color: normal" >set color-mode 0
175178ask patches
176179 [ recolor ]</button >
177- <button x =" 499 " y =" 149 " height =" 33 " disableUntilTicks =" false" forever =" false" kind =" Observer" display =" color: when heard" width = " 146 " sizeVersion = " 0 " >set color-mode 1
180+ <button x =" 504 " y =" 97 " height =" 35 " disableUntilTicks =" false" forever =" false" kind =" Observer" width = " 206 " display =" color: when heard" >set color-mode 1
178181ask patches
179182 [ recolor ]</button >
180- <button x =" 499 " y =" 183 " height =" 33 " disableUntilTicks =" false" forever =" false" kind =" Observer" display =" color: times heard" width = " 146 " sizeVersion = " 0 " >set color-mode 2
183+ <button x =" 504 " y =" 136 " height =" 35 " disableUntilTicks =" false" forever =" false" kind =" Observer" width = " 206 " display =" color: times heard" >set color-mode 2
181184ask patches
182185 [ recolor ]</button >
183- <monitor x =" 26" precision =" 3" y =" 253" height =" 45" fontSize =" 11" display =" clique %" width =" 90" sizeVersion =" 0" >(clique / count patches)
184- * 100</monitor >
185- <button x =" 483" y =" 55" height =" 33" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 181" sizeVersion =" 0" >spread-rumor-with-mouse</button >
186186 </widgets >
187187 <info ><![CDATA[ ## WHAT IS IT?
188188
0 commit comments