/** * @expectedException InvalidArgumentException */ public function testEdgeToInvalid() { $v3 = $this->graph->createVertex(3); $this->edge->getVertexToFrom($v3); }