Program: 39812
Project: 39812
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args){
  if (false) {
    String filename1="String_Node_Str";
    String filename2="String_Node_Str";
    Graph g=GraphReader.readOld(filename1);
    GraphWriter.write(g,filename2);
    return;
  }
  if (false) {
    Network nw=new ErdosRenyi(10,3,true,null);
    Transformation cd=new CommunityDetectionLPA(20);
    Transformation ce1=new SimpleCommunityEmbedding1();
    Transformation ce2=new SimpleCommunityEmbedding2();
    Transformation ce_1=new CommunityEmbedding(new OriginalCommunitySorter(),new RelativeSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
    Transformation ce_2=new CommunityEmbedding(new OriginalCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
    Transformation ce_3=new CommunityEmbedding(new NeighborsByEdgesCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
    Graph g=nw.generate();
    g=cd.transform(g);
    g=ce_3.transform(g);
    System.out.println(nw.getDescription());
    return;
  }
  Stats stats=new Stats();
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Metric dd=new DegreeDistribution();
  Metric communities=new Communities();
  Metric routing1=new Routing(new GreedyBacktracking(100));
  Metric routing2=new Routing(new Greedy());
  Metric routing3=new Routing(new DepthFirstGreedy(100));
  Metric idsd=new DIdentifierSpaceDistances(100);
  Metric[] metrics=new Metric[]{dd,communities,idsd};
  Transformation scp=new StrongConnectivityPartition();
  Transformation gcc=new GiantConnectedComponent();
  Transformation cd=new CommunityDetectionLPA(20);
  Transformation re=new RandomRingIDSpaceSimple();
  Transformation lmc=new LMC(1000,LMC.MODE_UNRESTRICTED,0,LMC.DELTA_1_N,0);
  Transformation sw=new Swapping(1000);
  Transformation ce1=new SimpleCommunityEmbedding1();
  Transformation ce2=new SimpleCommunityEmbedding2();
  Transformation ce_1=new CommunityEmbedding(new OriginalCommunitySorter(),new RelativeSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation ce_2=new CommunityEmbedding(new OriginalCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation ce_3=new CommunityEmbedding(new NeighborsByEdgesCommunitySorter(),new RelativeSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation ce_4=new CommunityEmbedding(new NeighborsByEdgesCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation[] tr=new Transformation[]{scp,gcc,cd,re};
  Transformation[] tlmc=new Transformation[]{scp,gcc,cd,re,lmc};
  Transformation[] tsw=new Transformation[]{scp,gcc,cd,re,sw};
  Transformation[] t1=new Transformation[]{scp,gcc,cd,ce1};
  Transformation[] t2=new Transformation[]{scp,gcc,cd,ce2};
  Transformation[] t3=new Transformation[]{scp,gcc,cd,ce_1};
  Transformation[] t4=new Transformation[]{scp,gcc,cd,ce_2};
  Transformation[] t5=new Transformation[]{scp,gcc,cd,ce_3};
  Transformation[] t6=new Transformation[]{scp,gcc,cd,ce_4};
  Map<Transformation[],String> names=new HashMap<Transformation[],String>();
  names.put(tr,"String_Node_Str");
  names.put(tlmc,"String_Node_Str");
  names.put(tsw,"String_Node_Str");
  names.put(t1,"String_Node_Str");
  names.put(t3,"String_Node_Str");
  names.put(t2,"String_Node_Str");
  names.put(t4,"String_Node_Str");
  names.put(t5,"String_Node_Str");
  names.put(t6,"String_Node_Str");
  String folder="String_Node_Str";
  Transformation[][] t=new Transformation[][]{tr,tlmc,tsw,t1,t3,t2,t4,t5,t6};
  t=new Transformation[][]{tr,tsw,t1,t3};
  String spi="String_Node_Str";
  String wot="String_Node_Str";
  boolean GET=true;
  int TIMES=2;
  int networkType=3;
  int nodes=2000;
  Network[] nw=new Network[t.length];
  String name=null;
  for (int i=0; i < t.length; i++) {
    if (networkType == 1) {
      nw[i]=new ReadableFile("String_Node_Str","String_Node_Str",spi,t[i]);
      name="String_Node_Str";
    }
    if (networkType == 2) {
      nw[i]=new ReadableFile("String_Node_Str","String_Node_Str",wot,t[i]);
      name="String_Node_Str";
    }
    if (networkType == 3) {
      nw[i]=CommunityEmbeddingsTest.nwCC(nodes,t[i]);
      name="String_Node_Str";
    }
    nw[i]=new DescriptionWrapper(nw[i],name + "String_Node_Str" + names.get(t[i]));
  }
  Series[] s=GET ? Series.get(nw,metrics) : Series.generate(nw,metrics,TIMES);
  Config.overwrite("String_Node_Str","String_Node_Str");
  Plotting.multi(s,metrics,name + "String_Node_Str" + folder,Type.average,Style.linespoint);
  stats.end();
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args){
  if (false) {
    String filename1="String_Node_Str";
    String filename2="String_Node_Str";
    Graph g=new GtnaV1GraphReader().read(filename1);
    new GtnaGraphWriter().write(g,filename2);
    return;
  }
  if (false) {
    Network nw=new ErdosRenyi(10,3,true,null);
    Transformation cd=new CommunityDetectionLPA(20);
    Transformation ce1=new SimpleCommunityEmbedding1();
    Transformation ce2=new SimpleCommunityEmbedding2();
    Transformation ce_1=new CommunityEmbedding(new OriginalCommunitySorter(),new RelativeSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
    Transformation ce_2=new CommunityEmbedding(new OriginalCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
    Transformation ce_3=new CommunityEmbedding(new NeighborsByEdgesCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
    Graph g=nw.generate();
    g=cd.transform(g);
    g=ce_3.transform(g);
    System.out.println(nw.getDescription());
    return;
  }
  Stats stats=new Stats();
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Config.overwrite("String_Node_Str","String_Node_Str");
  Metric dd=new DegreeDistribution();
  Metric communities=new Communities();
  Metric routing1=new Routing(new GreedyBacktracking(100));
  Metric routing2=new Routing(new Greedy());
  Metric routing3=new Routing(new DepthFirstGreedy(100));
  Metric idsd=new DIdentifierSpaceDistances(100);
  Metric[] metrics=new Metric[]{dd,communities,idsd};
  Transformation scp=new StrongConnectivityPartition();
  Transformation gcc=new GiantConnectedComponent();
  Transformation cd=new CommunityDetectionLPA(20);
  Transformation re=new RandomRingIDSpaceSimple();
  Transformation lmc=new LMC(1000,LMC.MODE_UNRESTRICTED,0,LMC.DELTA_1_N,0);
  Transformation sw=new Swapping(1000);
  Transformation ce1=new SimpleCommunityEmbedding1();
  Transformation ce2=new SimpleCommunityEmbedding2();
  Transformation ce_1=new CommunityEmbedding(new OriginalCommunitySorter(),new RelativeSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation ce_2=new CommunityEmbedding(new OriginalCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation ce_3=new CommunityEmbedding(new NeighborsByEdgesCommunitySorter(),new RelativeSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation ce_4=new CommunityEmbedding(new NeighborsByEdgesCommunitySorter(),new EqualSizeIdSpacePartitioner(0.0),new OriginalNodeSorter(),new EqualSizeCommunityPartitioner(),1.0,true);
  Transformation[] tr=new Transformation[]{scp,gcc,cd,re};
  Transformation[] tlmc=new Transformation[]{scp,gcc,cd,re,lmc};
  Transformation[] tsw=new Transformation[]{scp,gcc,cd,re,sw};
  Transformation[] t1=new Transformation[]{scp,gcc,cd,ce1};
  Transformation[] t2=new Transformation[]{scp,gcc,cd,ce2};
  Transformation[] t3=new Transformation[]{scp,gcc,cd,ce_1};
  Transformation[] t4=new Transformation[]{scp,gcc,cd,ce_2};
  Transformation[] t5=new Transformation[]{scp,gcc,cd,ce_3};
  Transformation[] t6=new Transformation[]{scp,gcc,cd,ce_4};
  Map<Transformation[],String> names=new HashMap<Transformation[],String>();
  names.put(tr,"String_Node_Str");
  names.put(tlmc,"String_Node_Str");
  names.put(tsw,"String_Node_Str");
  names.put(t1,"String_Node_Str");
  names.put(t3,"String_Node_Str");
  names.put(t2,"String_Node_Str");
  names.put(t4,"String_Node_Str");
  names.put(t5,"String_Node_Str");
  names.put(t6,"String_Node_Str");
  String folder="String_Node_Str";
  Transformation[][] t=new Transformation[][]{tr,tlmc,tsw,t1,t3,t2,t4,t5,t6};
  t=new Transformation[][]{tr,tsw,t1,t3};
  String spi="String_Node_Str";
  String wot="String_Node_Str";
  boolean GET=true;
  int TIMES=2;
  int networkType=3;
  int nodes=2000;
  Network[] nw=new Network[t.length];
  String name=null;
  for (int i=0; i < t.length; i++) {
    if (networkType == 1) {
      nw[i]=new ReadableFile("String_Node_Str","String_Node_Str",spi,t[i]);
      name="String_Node_Str";
    }
    if (networkType == 2) {
      nw[i]=new ReadableFile("String_Node_Str","String_Node_Str",wot,t[i]);
      name="String_Node_Str";
    }
    if (networkType == 3) {
      nw[i]=CommunityEmbeddingsTest.nwCC(nodes,t[i]);
      name="String_Node_Str";
    }
    nw[i]=new DescriptionWrapper(nw[i],name + "String_Node_Str" + names.get(t[i]));
  }
  Series[] s=GET ? Series.get(nw,metrics) : Series.generate(nw,metrics,TIMES);
  Config.overwrite("String_Node_Str","String_Node_Str");
  Plotting.multi(s,metrics,name + "String_Node_Str" + folder,Type.average,Style.linespoint);
  stats.end();
}