Code Duplication    Length = 4-4 lines in 2 locations

Grafizzi/Graph/Tests/IG17Test.php 2 locations

@@ 72-75 (lines=4) @@
69
      new Attribute($dic, 'color', 'lightgrey'),
70
      new Attribute($dic, 'label', 'process #1'),
71
    )));
72
    for ($i = 0 ; $i < 4 ; $i++) {
73
      $nodeName = "a$i";
74
      $cluster0->addChild($nodes[$nodeName] = new Node($dic, $nodeName, $nullTitle));
75
    }
76
77
    // cluster1
78
    $g->addChild($cluster1 = new Cluster($dic, 1, array(
@@ 82-85 (lines=4) @@
79
      new Attribute($dic, 'color', 'blue'),
80
      new Attribute($dic, 'label', 'process #2'),
81
    )));
82
    for ($i = 0 ; $i < 4 ; $i++) {
83
      $nodeName = "b$i";
84
      $cluster1->addChild($nodes[$nodeName] = new Node($dic, $nodeName, $nullTitle));
85
    }
86
87
    $g->addChild(new Edge($dic, $nodes['a0'], $nodes['a1']));
88
    $g->addChild(new Edge($dic, $nodes['a1'], $nodes['a2']));