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