Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed incorrect component calculations

  • Loading branch information...
commit c045d1efed4e62fdb33fc16e9a0b2ae3dd45d8a3 1 parent b6aa2e8
Isaac Sukin authored
1  Statistics.java
@@ -204,6 +204,7 @@ else if (objectInCollection(connection[1], component) && !objectInCollection(con
204 204
 			}
205 205
 			// If both nodes are in the collection, don't revisit the connection
206 206
 			else if (objectInCollection(connection[0], component) && objectInCollection(connection[1], component)) {
  207
+				connectionsNotYetInComponents.remove(connection);
207 208
 				continue;
208 209
 			}
209 210
 			// If this connection doesn't connect to the component as we currently know it, save it for later
2  ViralSpread.java
@@ -13,8 +13,6 @@
13 13
 import javax.swing.SwingUtilities;
14 14
 
15 15
 
16  
-// -----------1.0-------------
17  
-// TODO: Display edge probability (num. connections / (peopleCount*peopleCount))
18 16
 // -----------2.0-------------
19 17
 // TODO: Output data (evolution of each statistic over time) in a file when the simulation is complete
20 18
 // TODO: Allow saving graph(s) when the simulation is complete

0 notes on commit c045d1e

Please sign in to comment.
Something went wrong with that request. Please try again.