public function setUp() { $graph = new Graph(); $graph->createVertex(1); $graph->createVertex(2); // 1 -> 2 $this->edge = $graph->getVertex(1)->createEdge($graph->getVertex(2)); }