package nl.tudelft.ti2306.blockchain;

import nl.tudelft.ti2306.blockchain.datastructure.InteractionGraph;
import nl.tudelft.ti2306.blockchain.datastructure.PeerGraph;

/**
 * @author Maarten
 */
public class Main {

    /**
     * @param args
     */
    public static void main(String ... args) {

        final int peerCnt;
        final int interactionCnt;

        switch (args.length) {
        case 2:
            peerCnt        = Integer.valueOf(args[0]);
            interactionCnt = Integer.valueOf(args[1]);
            break;
        default:
            peerCnt = 10;
            interactionCnt = 50;
        }

        PeerGraph pgraph = PeerGraphGenerator.generate(
                peerCnt, PeerGraphGenerator.SCALE_FREE, 5, 0.1);
        new PeerGraphToViz(pgraph, "outputPeer.gv").run();

        InteractionGraph graph = InteractionGraphGenerator.generate(
                pgraph, interactionCnt);
        new InteractionGraphToViz(graph, "output.gv").run();

        System.out.println("Generated graph");
    }

}

@@ -297,30 +297,24 @@
  %7B%0A%0A        
-final 
 int peerCnt;
@@ -312,16 +312,21 @@
  peerCnt
+ = 10
 ;%0A      
@@ -331,14 +331,8 @@
     
-final 
 int 
@@ -345,16 +345,50 @@
 ctionCnt
+ = 50;%0A        int graphDegree = 4
 ;%0A%0A     
@@ -426,17 +426,17 @@
    case 
-2
+3
 :%0A      
@@ -445,19 +445,19 @@
     
-peerCnt    
+graphDegree
     
@@ -483,13 +483,29 @@
 rgs%5B
-0
+2
 %5D);%0A
+        case 2:%0A
     
@@ -567,93 +567,88 @@
     
-    break;%0A        default:%0A            peerCnt = 10;%0A            interactionCnt = 50
+case 1:%0A            peerCnt        = Integer.valueOf(args%5B0%5D);%0A            break
 ;%0A  
@@ -761,20 +761,31 @@
 or.S
-CALE_FREE, 5
+MALL_WORLD, graphDegree
 , 0.

Add Main parameter graphDegree